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