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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html
deleted file mode 100644
index ba492482d0d666371fb5109861073082d6dd69c4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<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 testSimpleCSS(next)
- {
- var content = "a { /* pre-comment */ color /* after name */ : /* before value */ red /* post-comment */ }";
- testCSSFormatter(content, [], next);
- },
-
- function testComplexCSS(next)
- {
- InspectorTest.showScriptSource("style-formatter-obfuscated.css", didShowScriptSource);
-
- function didShowScriptSource(sourceFrame)
- {
- var mappingQueries = [
- "@media",
- "screen",
- "html",
- "color",
- "green",
- "foo-property",
- "bar-value",
- "body",
- "background",
- "black",
- ];
- testCSSFormatter(sourceFrame._textEditor.text(), mappingQueries, next);
- }
- },
-
- 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>";
- InspectorTest.testPrettyPrint("text/html", content, [], next);
- },
-
- function testNonZeroLineMapping(next)
- {
- var mappingQueries = ["div", "color", "red"];
- testCSSFormatter("\n\ndiv { color: red; }", mappingQueries, next);
- },
- ]);
-}
-
-</script>
-
-</head>
-
-<body onload="runTest()">
-<p>Verifies CSS pretty-printing functionality.</p>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698