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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html

Issue 2823233004: DevTools: make JSFormatter aware of parenthesized expressions (Closed)
Patch Set: ac Created 3 years, 8 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-javascript-9-expected.txt » ('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-javascript-9.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca398acf1572319b61b68bacfbea5ddac30cbc48
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/sources-test.js"></script>
+
+<script>
+
+function test()
+{
+ var testJSFormatter = InspectorTest.testPrettyPrint.bind(InspectorTest, "text/javascript");
+
+ InspectorTest.runTestSuite([
+ function parenthesizedExpressions(next)
+ {
+ var mappingQueries = ["if", "((a))", "((b));", "else", "(c)"];
+ testJSFormatter("if((a))((b));else (c);", mappingQueries, next);
+ },
+ ]);
+}
+
+</script>
+
+</head>
+
+<body onload="runTest()">
+<p>Verifies JavaScript pretty-printing functionality.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-9-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698