mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
split new test out of this patch (web-platform-tests/wpt#39211)
This commit is contained in:
parent
d46d932f76
commit
6ed970b3fb
2 changed files with 0 additions and 56 deletions
|
@ -571609,13 +571609,6 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"window-indexed-access-vs-named-access.html": [
|
||||
"4918d7a50314af241a5de6d6d006cc1917785369",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"window-indexed-properties-delete-no-cache.html": [
|
||||
"22262943aadd775424645d79b0dfb2429f837e61",
|
||||
[
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Interactions between indexed and named access on the Window object</title>
|
||||
<link rel="author" title="Delan Azabani" href="dazabani@igalia.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#accessing-other-browsing-contexts">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#named-access-on-the-window-object">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=0></div>
|
||||
<div id=3></div>
|
||||
<iframe name=2></iframe>
|
||||
<iframe name=1></iframe>
|
||||
<script>
|
||||
const divs = document.querySelectorAll("div");
|
||||
const iframes = document.querySelectorAll("iframe");
|
||||
const wp = Object.getPrototypeOf(window);
|
||||
test(function() {
|
||||
assert_equals(window[0], iframes[0].contentWindow);
|
||||
assert_equals(window["0"], iframes[0].contentWindow);
|
||||
}, "WindowProxy: document-tree child navigable with index 0 (indexed access)");
|
||||
test(function() {
|
||||
assert_equals(window[1], iframes[1].contentWindow);
|
||||
assert_equals(window["1"], iframes[1].contentWindow);
|
||||
}, "WindowProxy: document-tree child navigable with index 1 (indexed access)");
|
||||
test(function() {
|
||||
assert_equals(window[2], iframes[0].contentWindow);
|
||||
assert_equals(window["2"], iframes[0].contentWindow);
|
||||
}, "WindowProxy: document-tree child navigable with target name 2 (named access)");
|
||||
test(function() {
|
||||
assert_equals(window[3], divs[1]);
|
||||
assert_equals(window["3"], divs[1]);
|
||||
}, "WindowProxy: element with id 3 (named access)");
|
||||
test(function() {
|
||||
assert_equals(wp[0], divs[0]);
|
||||
assert_equals(wp["0"], divs[0]);
|
||||
}, "Window prototype: element with id 0 (named access)");
|
||||
test(function() {
|
||||
assert_equals(wp[1], iframes[1].contentWindow);
|
||||
assert_equals(wp["1"], iframes[1].contentWindow);
|
||||
}, "Window prototype: document-tree child navigable with target name 1 (named access)");
|
||||
test(function() {
|
||||
assert_equals(wp[2], iframes[0].contentWindow);
|
||||
assert_equals(wp["2"], iframes[0].contentWindow);
|
||||
}, "Window prototype: document-tree child navigable with target name 2 (named access)");
|
||||
test(function() {
|
||||
assert_equals(wp[3], divs[1]);
|
||||
assert_equals(wp["3"], divs[1]);
|
||||
}, "Window prototype: element with id 3 (named access)");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue