Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div style="display: none"> 7 <div style="display: none">
8 <span id="lower1">lower 1</span><br> 8 <span id="lower1">lower 1</span><br>
9 <span id="lower2">lower 2</span><br> 9 <span id="lower2">lower 2</span><br>
10 <span id="UPPER1">UPPER 1</span><br> 10 <span id="UPPER1">UPPER 1</span><br>
11 <span id="UPPER2">UPPER 2</span><br> 11 <span id="UPPER2">UPPER 2</span><br>
12 </div> 12 </div>
13 <script> 13 <script>
14 shouldBe("document.querySelector('#lower1').textContent", "'lower 1'"); 14 shouldBe("document.querySelector('#lower1').textContent", "'lower 1'");
15 shouldBeNull("document.querySelector('#LOWER2')"); 15 shouldBeNull("document.querySelector('#LOWER2')");
16 shouldBe("document.querySelector('#UPPER1').textContent", "'UPPER 1'"); 16 shouldBe("document.querySelector('#UPPER1').textContent", "'UPPER 1'");
17 shouldBeNull("document.querySelector('#upper2')"); 17 shouldBeNull("document.querySelector('#upper2')");
18 18
19 shouldBeTrue("document.getElementById('lower1').webkitMatchesSelector('# lower1')"); 19 shouldBeTrue("document.getElementById('lower1').webkitMatchesSelector('# lower1')");
20 shouldBeFalse("document.getElementById('lower2').webkitMatchesSelector(' #LOWER2')"); 20 shouldBeFalse("document.getElementById('lower2').webkitMatchesSelector(' #LOWER2')");
21 shouldBeTrue("document.getElementById('UPPER1').webkitMatchesSelector('# UPPER1')"); 21 shouldBeTrue("document.getElementById('UPPER1').webkitMatchesSelector('# UPPER1')");
22 shouldBeFalse("document.getElementById('UPPER2').webkitMatchesSelector(' #upper2')"); 22 shouldBeFalse("document.getElementById('UPPER2').webkitMatchesSelector(' #upper2')");
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/SelectorAPI/caseID.html ('k') | LayoutTests/fast/dom/SelectorAPI/caseTagX.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698