OLD | NEW |
1 <html lang=en> | 1 <html lang=en> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <style> | 4 <style> |
5 #testid { background-color: red; } | 5 #testid { background-color: red; } |
6 #testID2 { background-color: red; } | 6 #testID2 { background-color: red; } |
7 .testclass { background-color: red; } | 7 .testclass { background-color: red; } |
8 .testClass2 { background-color: red; } | 8 .testClass2 { background-color: red; } |
9 </style> | 9 </style> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <div id=testid>id test</div> | 12 <div id=testid>id test</div> |
13 <style> | 13 <style> |
(...skipping 12 matching lines...) Expand all Loading... |
26 .TESTclass2 { background-color: green; } | 26 .TESTclass2 { background-color: green; } |
27 </style> | 27 </style> |
28 <script> | 28 <script> |
29 description("Test that elements before inline stylesheets get their style update
d properly"); | 29 description("Test that elements before inline stylesheets get their style update
d properly"); |
30 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC
olor','"rgb(0, 128, 0)"'); | 30 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC
olor','"rgb(0, 128, 0)"'); |
31 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0
]).backgroundColor','"rgb(0, 128, 0)"'); | 31 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0
]).backgroundColor','"rgb(0, 128, 0)"'); |
32 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background
Color','"rgb(0, 128, 0)"'); | 32 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background
Color','"rgb(0, 128, 0)"'); |
33 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[
0]).backgroundColor','"rgb(0, 128, 0)"'); | 33 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[
0]).backgroundColor','"rgb(0, 128, 0)"'); |
34 </script> | 34 </script> |
35 </body> | 35 </body> |
OLD | NEW |