1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <script src=
"../../../resources/js-test.js"></script>
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>
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')");