tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / dom / SelectorAPI / caseID-strict.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.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')");
18
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     <script src="../../js/resources/js-test-post.js"></script>
25 </body>
26 </html>