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

Side by Side Diff: LayoutTests/inspector/sources/pretty-print-javascript-6.html

Issue 1312033002: DevTools: fix pretty-print of anonymous functions passed as call parameters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix stray changes Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/pretty-print-javascript-6-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 <script src="debugger/resources/obfuscated.js"></script> 6 <script src="debugger/resources/obfuscated.js"></script>
7 7
8 <script> 8 <script>
9 9
10 function test() 10 function test()
(...skipping 22 matching lines...) Expand all
33 function blockCommentFormatter(next) 33 function blockCommentFormatter(next)
34 { 34 {
35 var mappingQueries = ["this", "is", "block", "comment", "var", "10"] ; 35 var mappingQueries = ["this", "is", "block", "comment", "var", "10"] ;
36 testJSFormatter("/** this\n * is\n * block\n * comment\n */\nvar a=1 0;", mappingQueries, next); 36 testJSFormatter("/** this\n * is\n * block\n * comment\n */\nvar a=1 0;", mappingQueries, next);
37 }, 37 },
38 38
39 function lexicalScoping(next) 39 function lexicalScoping(next)
40 { 40 {
41 var mappingQueries = ["for", "person", "name", "}"]; 41 var mappingQueries = ["for", "person", "name", "}"];
42 testJSFormatter("for(var i=0;i<names.length;++i){let name=names[i];l et person=persons[i];}", mappingQueries, next); 42 testJSFormatter("for(var i=0;i<names.length;++i){let name=names[i];l et person=persons[i];}", mappingQueries, next);
43 },
44
45 function anonimousFunctionAsParameter(next)
46 {
47 var mappingQueries = ["setTimeout", "function", "alert", "2000"];
48 testJSFormatter("setTimeout(function(){alert(1);},2000);", mappingQu eries, next);
43 } 49 }
44 ]); 50 ]);
45 } 51 }
46 52
47 </script> 53 </script>
48 54
49 </head> 55 </head>
50 56
51 <body onload="runTest()"> 57 <body onload="runTest()">
52 <p>Verifies JavaScript pretty-printing functionality.</p> 58 <p>Verifies JavaScript pretty-printing functionality.</p>
53 </body> 59 </body>
54 </html> 60 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698