"javascript:" urls: move test to correct location

- move test to correct directory
- update it to be more concise

I also confirmed that this test passes in Firefox.
This commit is contained in:
Daniel Johnson 2017-08-27 23:17:03 -07:00
parent ff786a050a
commit fc23cb1a63
3 changed files with 26 additions and 38 deletions

View file

@ -0,0 +1,16 @@
<!doctype html>
<meta charset=utf-8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<a id="javascript-link" href="javascript:changeStatus()">link</a>
<script>
function changeStatus() {
t.done();
}
var t = async_test(function(t) {
document.querySelector("#javascript-link").click();
}, "javascript: scheme urls should be executed in current global scope");
</script>