OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="insert"></div> | 7 <div id="insert"></div> |
8 <div> | 8 <div> |
9 <div> | 9 <div> |
10 <style scoped> | 10 <style scoped> |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 description('Test a case whether order of scoping nodes is different from or
der of style elements.'); | 33 description('Test a case whether order of scoping nodes is different from or
der of style elements.'); |
34 shouldBe('document.styleSheets.length', '4'); | 34 shouldBe('document.styleSheets.length', '4'); |
35 shouldBe('document.styleSheets[1].cssRules[0].cssText', '"span { color: gree
n; }"'); | 35 shouldBe('document.styleSheets[1].cssRules[0].cssText', '"span { color: gree
n; }"'); |
36 shouldBe('document.styleSheets[2].cssRules[0].cssText', '"span { color: grey
; }"'); | 36 shouldBe('document.styleSheets[2].cssRules[0].cssText', '"span { color: grey
; }"'); |
37 shouldBe('document.styleSheets[3].cssRules[0].cssText', '"span { border: 1px
solid green; }"'); | 37 shouldBe('document.styleSheets[3].cssRules[0].cssText', '"span { border: 1px
solid green; }"'); |
38 shouldBe('borderColor("target")', '"rgb(0, 128, 0)"'); | 38 shouldBe('borderColor("target")', '"rgb(0, 128, 0)"'); |
39 </script> | 39 </script> |
40 </body> | 40 </body> |
41 <script src="../../js/resources/js-test-post.js"></script> | |
42 </html> | 41 </html> |
43 | 42 |
OLD | NEW |