Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"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.
- Loading branch information
Showing
3 changed files
with
26 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ml/browsers/browsing-the-web/navigating-across-documents/javascript-url-global-scope.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
28 changes: 0 additions & 28 deletions
28
tests/wpt/web-platform-tests/url/a-element-href-javascript.html
This file was deleted.
Oops, something went wrong.