mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
"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:
parent
ff786a050a
commit
fc23cb1a63
3 changed files with 26 additions and 38 deletions
|
@ -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": [
|
||||||
[
|
[
|
||||||
"/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",
|
||||||
|
@ -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": [
|
||||||
[
|
[
|
||||||
"/url/a-element-origin-xhtml.xhtml",
|
"/url/a-element-origin-xhtml.xhtml",
|
||||||
|
@ -559904,6 +559904,10 @@
|
||||||
"3842ac825b9fb33d0d95ef99f77c8c7d02a88e9a",
|
"3842ac825b9fb33d0d95ef99f77c8c7d02a88e9a",
|
||||||
"support"
|
"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": [
|
"html/browsers/browsing-the-web/navigating-across-documents/javascript-url-query-fragment-components.html": [
|
||||||
"1278f37be250f761f84bf352ebff8ed4c8a04e96",
|
"1278f37be250f761f84bf352ebff8ed4c8a04e96",
|
||||||
"testharness"
|
"testharness"
|
||||||
|
@ -600984,10 +600988,6 @@
|
||||||
"3dacc2783865ba292f20b72bc4c3942de521d9b0",
|
"3dacc2783865ba292f20b72bc4c3942de521d9b0",
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"url/a-element-href-javascript.html": [
|
|
||||||
"567d16dde294a2f3e75fdb8139d1af9a8c73e0fc",
|
|
||||||
"testharness"
|
|
||||||
],
|
|
||||||
"url/a-element-origin-xhtml.xhtml": [
|
"url/a-element-origin-xhtml.xhtml": [
|
||||||
"56019fd2d3870324ba412e3e0c602bad3b90ef49",
|
"56019fd2d3870324ba412e3e0c602bad3b90ef49",
|
||||||
"testharness"
|
"testharness"
|
||||||
|
|
|
@ -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>
|
|
@ -1,28 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<meta charset=utf-8>
|
|
||||||
<script src=/resources/testharness.js></script>
|
|
||||||
<script src=/resources/testharnessreport.js></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var linkStatus = 'link not clicked';
|
|
||||||
|
|
||||||
function changeStatus() {
|
|
||||||
linkStatus = 'link has been clicked';
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<a id="javascript-link" href="javascript:changeStatus()">link</a>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
setup({explicit_done:true});
|
|
||||||
|
|
||||||
document.querySelector("#javascript-link").click();
|
|
||||||
|
|
||||||
step_timeout(function() {
|
|
||||||
test(function() {
|
|
||||||
assert_equals(linkStatus, "link has been clicked");
|
|
||||||
}, "javascript: scheme urls should be executed in correct global scope");
|
|
||||||
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
</script>
|
|
Loading…
Add table
Add a link
Reference in a new issue