| Index: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-3.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-3.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-3.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce9a8c85ae28f05ab21e8cb4a40efeb39099be5e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-3.html
|
| @@ -0,0 +1,59 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../http/tests/inspector/debugger-test.js"></script>
|
| +<script src="../../http/tests/inspector/sources-test.js"></script>
|
| +<link rel="stylesheet" href="resources/style-formatter-obfuscated.css">
|
| +
|
| +<script>
|
| +
|
| +function test()
|
| +{
|
| + var testCSSFormatter = InspectorTest.testPrettyPrint.bind(InspectorTest, "text/css");
|
| +
|
| + InspectorTest.runTestSuite([
|
| + function testMediaRule(next)
|
| + {
|
| + var css = "@media screen,print{body{line-height:1.2}}span{line-height:10px}";
|
| + var mappingQueries = ["@media", "screen", "print", "body", "line-height", "1.2"];
|
| + testCSSFormatter(css, mappingQueries, next);
|
| + },
|
| +
|
| + function testNamespaceRule(next)
|
| + {
|
| + var css = "@namespace svg url(http://www.w3.org/2000/svg);g{color:red}";
|
| + var mappingQueries = ["namespace", "url", "color", "red"];
|
| + testCSSFormatter(css, mappingQueries, next);
|
| + },
|
| +
|
| + function testPageRule(next)
|
| + {
|
| + var css = "@page :first{margin:2in 3in;}span{color:blue}";
|
| + var mappingQueries = ["page", "first", "margin", "3in"];
|
| + testCSSFormatter(css, mappingQueries, next);
|
| + },
|
| +
|
| + function testSupportsRule(next)
|
| + {
|
| + var css = "@supports(--foo:green){body{color:green;}}#content{font-size:14px}";
|
| + var mappingQueries = ["supports", "foo", "body", "color"];
|
| + testCSSFormatter(css, mappingQueries, next);
|
| + },
|
| +
|
| + function testViewportRule(next)
|
| + {
|
| + var css = "@viewport{zoom:0.75;min-zoom:0.5;max-zoom:0.9;}footer{position:fixed;bottom:0;}";
|
| + var mappingQueries = ["viewport", "zoom", "0.5", "0.9"];
|
| + testCSSFormatter(css, mappingQueries, next);
|
| + },
|
| + ]);
|
| +}
|
| +
|
| +</script>
|
| +
|
| +</head>
|
| +
|
| +<body onload="runTest()">
|
| +<p>Verifies CSS pretty-printing functionality.</p>
|
| +</body>
|
| +</html>
|
|
|