summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/htmlallcollection-call-with-index-caching-bug.html
blob: 377aa60c0e61fa1052edce892adf106af743c21f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head id="foo">
<meta charset="utf-8">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>

description("This tests verifies that calling document.all(name, index) doesn't affect subsequent calls to document.all.item(index)");

shouldBe("document.all.item(0)", "document.documentElement");
debug("Calling document.all('foo', 0).");
document.all('foo', 0)
shouldBe("document.all.item(0)", "document.documentElement");

</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>