JS Test Harness: Insert the stylesheet dynamically
[WebKit-https.git] / LayoutTests / fast / dom / SelectorAPI / caseTag.html
1 <html>
2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script>
4 </head>
5 <body>
6     <div style="display: none">
7     <span id="lower1">lower</span><br>
8     <P id="UPPER1">UPPER</P><br>
9     </div>
10     <script>
11         shouldBe("document.querySelector('div SPAN').textContent", "'lower'");
12         shouldBe("document.querySelector('div p').textContent", "'UPPER'");
13
14         shouldBeTrue("document.getElementById('lower1').webkitMatchesSelector('div SPAN')");
15         shouldBeTrue("document.getElementById('UPPER1').webkitMatchesSelector('div p')");
16
17         var successfullyParsed = true;
18     </script>
19     <script src="../../js/resources/js-test-post.js"></script>
20 </body>
21 </html>