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

Side by Side Diff: LayoutTests/fast/css/id-or-class-before-stylesheet-strict.html

Issue 48903019: Delete js-test-post.js. (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> 1 <!DOCTYPE html>
2 <html lang=en> 2 <html lang=en>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <style> 5 <style>
6 #testid { background-color: red; } 6 #testid { background-color: red; }
7 #testID2 { background-color: red; } 7 #testID2 { background-color: red; }
8 .testclass { background-color: red; } 8 .testclass { background-color: red; }
9 .testClass2 { background-color: red; } 9 .testClass2 { background-color: red; }
10 </style> 10 </style>
(...skipping 15 matching lines...) Expand all
26 <style> 26 <style>
27 .TESTclass2 { background-color: green; } 27 .TESTclass2 { background-color: green; }
28 </style> 28 </style>
29 <script> 29 <script>
30 description("Test that elements before inline stylesheets get their style update d properly"); 30 description("Test that elements before inline stylesheets get their style update d properly");
31 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC olor','"rgb(0, 128, 0)"'); 31 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC olor','"rgb(0, 128, 0)"');
32 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0 ]).backgroundColor','"rgb(0, 128, 0)"'); 32 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0 ]).backgroundColor','"rgb(0, 128, 0)"');
33 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background Color','"rgb(255, 0, 0)"'); 33 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background Color','"rgb(255, 0, 0)"');
34 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[ 0]).backgroundColor','"rgb(255, 0, 0)"'); 34 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[ 0]).backgroundColor','"rgb(255, 0, 0)"');
35 </script> 35 </script>
36 <script src="../js/resources/js-test-post.js"></script>
37 </body> 36 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/id-or-class-before-stylesheet.html ('k') | LayoutTests/fast/css/image-set-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698