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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html

Issue 2028863002: DevTools: fix css pretty-print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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/inspector/sources/pretty-print-css-1.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html
similarity index 81%
rename from third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html
rename to third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html
index ba492482d0d666371fb5109861073082d6dd69c4..264bcf5445b016deae96b64318a1dbab88e8d27e 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html
@@ -15,7 +15,7 @@ function test()
function testSimpleCSS(next)
{
var content = "a { /* pre-comment */ color /* after name */ : /* before value */ red /* post-comment */ }";
- testCSSFormatter(content, [], next);
+ testCSSFormatter(content, ["pre-comment", "post-comment"], next);
},
function testComplexCSS(next)
@@ -42,7 +42,7 @@ function test()
function testFormatInlinedStyles(next)
{
- var content = "<html><body><style>@-webkit-keyframes{from{left: 0} to{left:100px;}}</style><style>badbraces { }} @media screen{a{color:red;text-decoration: none}}</style></body></html>";
+ var content = "<html><body><style>@-webkit-keyframes{from{left: 0} to{left:100px;}}</style><style>badbraces { }} @media screen{a.b{color:red;text-decoration: none}}</style></body></html>";
InspectorTest.testPrettyPrint("text/html", content, [], next);
},
@@ -51,6 +51,13 @@ function test()
var mappingQueries = ["div", "color", "red"];
testCSSFormatter("\n\ndiv { color: red; }", mappingQueries, next);
},
+
+ function testComplexSelector(next)
+ {
+ var css = "a.b.c:hover,.d.e.f.g::before,h.i{color:red;}";
+ var mappingQueries = ["a",".b",".c",".d",".e",".f",".g","h",".i","color","red"];
+ testCSSFormatter(css, mappingQueries, next);
+ },
]);
}

Powered by Google App Engine
This is Rietveld 408576698