Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js

Issue 2428223002: Remove the trailing whitespace in CSSMediaRule::cssText (Closed)
Patch Set: Fix test case Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698