OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div id="test" style="color: red"> | 8 <div id="test" style="color: red"> |
9 <p style="color: green"></p> | 9 <p style="color: green"></p> |
10 <p style="color: green"></p> | 10 <p style="color: green"></p> |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Trigger a style recalc on pees[0]. | 31 // Trigger a style recalc on pees[0]. |
32 pees[0].style.background = 'white'; | 32 pees[0].style.background = 'white'; |
33 | 33 |
34 computedStyle = getComputedStyle(pees[0]); | 34 computedStyle = getComputedStyle(pees[0]); |
35 shouldBe("computedStyle.color", "'rgb(0, 128, 0)'"); | 35 shouldBe("computedStyle.color", "'rgb(0, 128, 0)'"); |
36 finishJSTest(); | 36 finishJSTest(); |
37 } | 37 } |
38 | 38 |
39 </script> | 39 </script> |
40 <script src="../js/resources/js-test-post.js"></script> | |
41 </body> | 40 </body> |
42 </html> | 41 </html> |
OLD | NEW |