OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 span { | 5 span { |
6 background-color: green; | 6 background-color: green; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script src="../../js/resources/js-test-pre.js"></script> | 9 <script src="../../js/resources/js-test-pre.js"></script> |
10 </head> | 10 </head> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(255, 0, 0)"'); | 42 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(255, 0, 0)"'); |
43 | 43 |
44 debug("Remove an inserted scoped style."); | 44 debug("Remove an inserted scoped style."); |
45 newStyle.parentNode.removeChild(newStyle); | 45 newStyle.parentNode.removeChild(newStyle); |
46 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(255, 0, 0)"'); | 46 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(255, 0, 0)"'); |
47 | 47 |
48 debug("Remove an existing scoped style."); | 48 debug("Remove an existing scoped style."); |
49 existingStyle.parentNode.removeChild(existingStyle); | 49 existingStyle.parentNode.removeChild(existingStyle); |
50 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(0, 128, 0)"'); | 50 shouldBe("window.getComputedStyle(target).backgroundColor", '"rgb(0, 128, 0)"'); |
51 </script> | 51 </script> |
52 <script src="../../js/resources/js-test-post.js"></script> | |
53 </html> | 52 </html> |
OLD | NEW |