| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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> |
| 63 <script src="../js/resources/js-test-post.js"></script> | |
| OLD | NEW |