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

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

Issue 2184193003: DevTools: fix formatting of continue statement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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-7-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-7.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7.html
index a2193555a8473d9d2d228ca13634d03c4613eb37..fa3e9b25f9fabefa210696f57e06e3d17ff49328 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7.html
@@ -3,7 +3,6 @@
<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>
-<script src="debugger/resources/obfuscated.js"></script>
<script>
@@ -29,6 +28,12 @@ function test()
var mappingQueries = ["onStart", "delay", "1000", "belay", "activeElement"];
testJSFormatter("var onStart = function() {}, delay=1000, belay=document.activeElement;", mappingQueries, next);
},
+
+ function continueStatementFormatting(next)
+ {
+ var mappingQueries = ["function", "1", "continue", "test"];
+ testJSFormatter("function foo(){while(1){if (a)continue;test();}}", mappingQueries, next);
+ },
]);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698