OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <style> | 4 <style> |
5 .test { | 5 .test { |
6 content: "UNTOUCHED"; | 6 content: "UNTOUCHED"; |
7 } | 7 } |
8 | 8 |
9 @media all { | 9 @media all { |
10 @media all { | 10 @media all { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 shouldBe("rules[1].cssRules[0].cssRules[2].parentStyleSheet", "document.styleShe
ets[1]"); | 50 shouldBe("rules[1].cssRules[0].cssRules[2].parentStyleSheet", "document.styleShe
ets[1]"); |
51 | 51 |
52 shouldBe("rules[1].cssRules[1].type", "CSSRule.MEDIA_RULE"); | 52 shouldBe("rules[1].cssRules[1].type", "CSSRule.MEDIA_RULE"); |
53 shouldEvaluateTo("rules[1].cssRules[1].cssRules.length", 1); | 53 shouldEvaluateTo("rules[1].cssRules[1].cssRules.length", 1); |
54 shouldBe("rules[1].cssRules[1].cssRules[0].type", "CSSRule.MEDIA_RULE"); | 54 shouldBe("rules[1].cssRules[1].cssRules[0].type", "CSSRule.MEDIA_RULE"); |
55 evalAndLog("rules[1].cssRules[1].insertRule('@media all { @page :left { top: 0;
} }', 1)"); | 55 evalAndLog("rules[1].cssRules[1].insertRule('@media all { @page :left { top: 0;
} }', 1)"); |
56 shouldEvaluateTo("rules[1].cssRules[1].cssRules.length", 2); | 56 shouldEvaluateTo("rules[1].cssRules[1].cssRules.length", 2); |
57 shouldBe("rules[1].cssRules[1].cssRules[1].type", "CSSRule.MEDIA_RULE"); | 57 shouldBe("rules[1].cssRules[1].cssRules[1].type", "CSSRule.MEDIA_RULE"); |
58 shouldBe("rules[1].cssRules[1].cssRules[1].cssRules[0].type", "CSSRule.PAGE_RULE
"); | 58 shouldBe("rules[1].cssRules[1].cssRules[1].cssRules[0].type", "CSSRule.PAGE_RULE
"); |
59 | 59 |
60 shouldBeEqualToString("getComputedStyle(document.getElementById('t0')).content",
"'APPLIED'"); | 60 shouldBeEqualToString("getComputedStyle(document.getElementById('t0')).content",
'"APPLIED"'); |
61 shouldBeEqualToString("getComputedStyle(document.getElementById('t1')).content",
"'UNTOUCHED'"); | 61 shouldBeEqualToString("getComputedStyle(document.getElementById('t1')).content",
'"UNTOUCHED"'); |
62 </script> | 62 </script> |
OLD | NEW |