Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / SelectorAPI / caseID.html
blobaea66a803418d55513cf312bf6e3a6141453e970
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <div style="display: none">
7 <span id="lower1">lower 1</span><br>
8 <span id="lower2">lower 2</span><br>
9 <span id="UPPER1">UPPER 1</span><br>
10 <span id="UPPER2">UPPER 2</span><br>
11 </div>
12 <script>
13 shouldBe("document.querySelector('#lower1').textContent", "'lower 1'");
14 shouldBe("document.querySelector('#LOWER2').textContent", "'lower 2'");
15 shouldBe("document.querySelector('#UPPER1').textContent", "'UPPER 1'");
16 shouldBe("document.querySelector('#upper2').textContent", "'UPPER 2'");
18 shouldBeTrue("document.getElementById('lower1').webkitMatchesSelector('#lower1')");
19 shouldBeTrue("document.getElementById('lower2').webkitMatchesSelector('#LOWER2')");
20 shouldBeTrue("document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1')");
21 shouldBeTrue("document.getElementById('UPPER2').webkitMatchesSelector('#upper2')");
22 </script>
23 </body>
24 </html>