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

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

Issue 2300073003: DevTools: Fix pretty print inconsistent spacing (Closed)
Patch Set: Test added Created 4 years, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../http/tests/inspector/sources-test.js"></script> 5 <script src="../../http/tests/inspector/sources-test.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
(...skipping 16 matching lines...) Expand all
27 { 27 {
28 var mappingQueries = ["onStart", "delay", "1000", "belay", "activeEl ement"]; 28 var mappingQueries = ["onStart", "delay", "1000", "belay", "activeEl ement"];
29 testJSFormatter("var onStart = function() {}, delay=1000, belay=docu ment.activeElement;", mappingQueries, next); 29 testJSFormatter("var onStart = function() {}, delay=1000, belay=docu ment.activeElement;", mappingQueries, next);
30 }, 30 },
31 31
32 function continueStatementFormatting(next) 32 function continueStatementFormatting(next)
33 { 33 {
34 var mappingQueries = ["function", "1", "continue", "test"]; 34 var mappingQueries = ["function", "1", "continue", "test"];
35 testJSFormatter("function foo(){while(1){if (a)continue;test();}}", mappingQueries, next); 35 testJSFormatter("function foo(){while(1){if (a)continue;test();}}", mappingQueries, next);
36 }, 36 },
37
38 function inconsistentSpaceAfterNull(next)
39 {
40 var mappingQueries = ["||", "null", ";"];
41 testJSFormatter("1||null;", mappingQueries, next);
42 },
37 ]); 43 ]);
38 } 44 }
39 45
40 </script> 46 </script>
41 47
42 </head> 48 </head>
43 49
44 <body onload="runTest()"> 50 <body onload="runTest()">
45 <p>Verifies JavaScript pretty-printing functionality.</p> 51 <p>Verifies JavaScript pretty-printing functionality.</p>
46 </body> 52 </body>
47 </html> 53 </html>
OLDNEW
« 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