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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js
diff --git a/third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js b/third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js
index 721eacbd319ed341bc6f7ef4eb3490d15646f6cd..079623525a21216b2af42093b2522b9fe7927fe7 100644
--- a/third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js
+++ b/third_party/WebKit/LayoutTests/fast/css/resources/insertRule-media.js
@@ -2,7 +2,7 @@ description(
'Test parsing of @media rule using insertRule(). <a href="http://bugs.webkit.org/show_bug.cgi?id=15986">http://bugs.webkit.org/show_bug.cgi?id=15986</a>'
);
-var rule = "@media all and (min-width: 0px) { \n #greenid { color: green; }\n}";
-var serializedRule = "@media (min-width: 0px) { \n #greenid { color: green; }\n}";
+var rule = "@media all and (min-width: 0px) {\n #greenid { color: green; }\n}";
+var serializedRule = "@media (min-width: 0px) {\n #greenid { color: green; }\n}";
shouldBe("document.styleSheets[0].insertRule(rule, 0)", "0");
shouldBe("document.styleSheets[0].rules[0].cssText", "serializedRule");

Powered by Google App Engine
This is Rietveld 408576698