| 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 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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> |
| OLD | NEW |