| OLD | NEW |
| 1 description( | 1 description( |
| 2 'Test parsing of @media rule using insertRule(). <a href="http://bugs.webkit.or
g/show_bug.cgi?id=15986">http://bugs.webkit.org/show_bug.cgi?id=15986</a>' | 2 'Test parsing of @media rule using insertRule(). <a href="http://bugs.webkit.or
g/show_bug.cgi?id=15986">http://bugs.webkit.org/show_bug.cgi?id=15986</a>' |
| 3 ); | 3 ); |
| 4 | 4 |
| 5 var rule = "@media all and (min-width: 0px) { \n #greenid { color: green; }\n}"
; | 5 var rule = "@media all and (min-width: 0px) {\n #greenid { color: green; }\n}"; |
| 6 var serializedRule = "@media (min-width: 0px) { \n #greenid { color: green; }\n
}"; | 6 var serializedRule = "@media (min-width: 0px) {\n #greenid { color: green; }\n}
"; |
| 7 shouldBe("document.styleSheets[0].insertRule(rule, 0)", "0"); | 7 shouldBe("document.styleSheets[0].insertRule(rule, 0)", "0"); |
| 8 shouldBe("document.styleSheets[0].rules[0].cssText", "serializedRule"); | 8 shouldBe("document.styleSheets[0].rules[0].cssText", "serializedRule"); |
| OLD | NEW |