| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
| 4 <script> |
| 5 setPrintTestResultsLazily(); |
| 6 </script> |
| 4 <head> | 7 <head> |
| 5 <link id="importLink" rel="import" href="resources/style-link-child.html"> | 8 <link id="importLink" rel="import" href="resources/style-link-child.html"> |
| 6 <style> | 9 <style> |
| 7 .red-from-import { | 10 .red-from-import { |
| 8 color: white; // Overriding with white. | 11 color: white; // Overriding with white. |
| 9 }; | 12 }; |
| 10 </style> | 13 </style> |
| 11 </head> | 14 </head> |
| 12 <body> | 15 <body> |
| 13 <h1>These elements should be styled appropriately:</h1> | 16 <h1>These elements should be styled appropriately:</h1> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Dyanically removing | 50 // Dyanically removing |
| 48 Array.prototype.forEach.call(importLink.import.querySelectorAll("link"), func
tion(e) { e.remove(); }); | 51 Array.prototype.forEach.call(importLink.import.querySelectorAll("link"), func
tion(e) { e.remove(); }); |
| 49 shouldBeEqualToString("window.getComputedStyle(shouldBeBlue).color", "rgb(0,
0, 0)"); | 52 shouldBeEqualToString("window.getComputedStyle(shouldBeBlue).color", "rgb(0,
0, 0)"); |
| 50 shouldBeEqualToString("window.getComputedStyle(shouldBeGreen).color", "rgb(0,
0, 0)"); | 53 shouldBeEqualToString("window.getComputedStyle(shouldBeGreen).color", "rgb(0,
0, 0)"); |
| 51 finishJSTest(); | 54 finishJSTest(); |
| 52 } | 55 } |
| 53 | 56 |
| 54 </script> | 57 </script> |
| 55 </body> | 58 </body> |
| 56 </html> | 59 </html> |
| OLD | NEW |