Skip to content

Commit

Permalink
"javascript:" urls: move test to correct location
Browse files Browse the repository at this point in the history
- move test to correct directory
- update it to be more concise

I also confirmed that this test passes in Firefox.
  • Loading branch information
archive64 committed Aug 28, 2017
1 parent ff786a0 commit fc23cb1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 38 deletions.
20 changes: 10 additions & 10 deletions tests/wpt/metadata/MANIFEST.json
Expand Up @@ -326433,6 +326433,12 @@
{}
]
],
"html/browsers/browsing-the-web/navigating-across-documents/javascript-url-global-scope.html": [
[
"/html/browsers/browsing-the-web/navigating-across-documents/javascript-url-global-scope.html",
{}
]
],
"html/browsers/browsing-the-web/navigating-across-documents/javascript-url-query-fragment-components.html": [
[
"/html/browsers/browsing-the-web/navigating-across-documents/javascript-url-query-fragment-components.html",
Expand Down Expand Up @@ -359897,12 +359903,6 @@
{}
]
],
"url/a-element-href-javascript.html": [
[
"/url/a-element-href-javascript.html",
{}
]
],
"url/a-element-origin-xhtml.xhtml": [
[
"/url/a-element-origin-xhtml.xhtml",
Expand Down Expand Up @@ -559904,6 +559904,10 @@
"3842ac825b9fb33d0d95ef99f77c8c7d02a88e9a",
"support"
],
"html/browsers/browsing-the-web/navigating-across-documents/javascript-url-global-scope.html": [
"d678c54e2c20d5f240fd68790ea4e03512db2c8a",
"testharness"
],
"html/browsers/browsing-the-web/navigating-across-documents/javascript-url-query-fragment-components.html": [
"1278f37be250f761f84bf352ebff8ed4c8a04e96",
"testharness"
Expand Down Expand Up @@ -600984,10 +600988,6 @@
"3dacc2783865ba292f20b72bc4c3942de521d9b0",
"support"
],
"url/a-element-href-javascript.html": [
"567d16dde294a2f3e75fdb8139d1af9a8c73e0fc",
"testharness"
],
"url/a-element-origin-xhtml.xhtml": [
"56019fd2d3870324ba412e3e0c602bad3b90ef49",
"testharness"
Expand Down
@@ -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 tests/wpt/web-platform-tests/url/a-element-href-javascript.html

This file was deleted.

0 comments on commit fc23cb1

Please sign in to comment.