| 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 28 matching lines...) Expand all Loading... |
| 39 { | 39 { |
| 40 var mappingQueries = ["||", "null", ";"]; | 40 var mappingQueries = ["||", "null", ";"]; |
| 41 testJSFormatter("1||null;", mappingQueries, next); | 41 testJSFormatter("1||null;", mappingQueries, next); |
| 42 }, | 42 }, |
| 43 | 43 |
| 44 function squashMultipleNewlines(next) | 44 function squashMultipleNewlines(next) |
| 45 { | 45 { |
| 46 var mappingQueries = ["a", "b"]; | 46 var mappingQueries = ["a", "b"]; |
| 47 testJSFormatter("a();\n\n\n\n\n\n\n\n\nb();", mappingQueries, next); | 47 testJSFormatter("a();\n\n\n\n\n\n\n\n\nb();", mappingQueries, next); |
| 48 }, | 48 }, |
| 49 |
| 50 function ensureExponentialOperator(next) |
| 51 { |
| 52 var mappingQueries = ["2", "**", "3"]; |
| 53 testJSFormatter("2**3", mappingQueries, next); |
| 54 }, |
| 49 ]); | 55 ]); |
| 50 } | 56 } |
| 51 | 57 |
| 52 </script> | 58 </script> |
| 53 | 59 |
| 54 </head> | 60 </head> |
| 55 | 61 |
| 56 <body onload="runTest()"> | 62 <body onload="runTest()"> |
| 57 <p>Verifies JavaScript pretty-printing functionality.</p> | 63 <p>Verifies JavaScript pretty-printing functionality.</p> |
| 58 </body> | 64 </body> |
| 59 </html> | 65 </html> |
| OLD | NEW |