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 <script> | 5 <script> |
6 if (window.internals) | 6 if (window.internals) |
7 window.internals.settings.setStyleScopedEnabled(false); | 7 window.internals.settings.setStyleScopedEnabled(false); |
8 </script> | 8 </script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
(...skipping 12 matching lines...) Expand all Loading... |
23 var shouldBeApplied = shadow.getElementById("shouldBeApplied"); | 23 var shouldBeApplied = shadow.getElementById("shouldBeApplied"); |
24 var shouldNotBeApplied = document.getElementById("shouldNotBeApplied"); | 24 var shouldNotBeApplied = document.getElementById("shouldNotBeApplied"); |
25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped"); | 25 var shouldNotBeScoped = document.getElementById("shouldNotBeScoped"); |
26 var insideScope = document.getElementById("insideScope"); | 26 var insideScope = document.getElementById("insideScope"); |
27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'"); | 27 shouldBe("window.getComputedStyle(shouldBeApplied).color", "'rgb(0, 0, 255)'"); |
28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'"); | 28 shouldBe("window.getComputedStyle(shouldNotBeApplied).color", "'rgb(0, 0, 0)'"); |
29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'"); | 29 shouldBe("window.getComputedStyle(insideScope).color", "'rgb(255, 0, 0)'"); |
30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'")
; | 30 shouldBe("window.getComputedStyle(shouldNotBeScoped).color", "'rgb(255, 0, 0)'")
; |
31 finishJSTest(); | 31 finishJSTest(); |
32 </script> | 32 </script> |
33 <script src="../../js/resources/js-test-post.js"></script> | |
34 </body> | 33 </body> |
35 </html> | 34 </html> |
OLD | NEW |