| 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);
|
| + },
|
| ]);
|
| }
|
|
|
|
|