OLD | NEW |
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 Loading... |
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> |
OLD | NEW |