Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/debugger-test.js"></script> | |
|
allada
2017/04/18 23:25:42
I don't think we need debugger-test.js, can you pl
luoe
2017/04/18 23:33:55
Looks like we don't! All the other 'pretty-print-
| |
| 5 <script src="../../http/tests/inspector/sources-test.js"></script> | |
| 6 | |
| 7 <script> | |
| 8 | |
| 9 function test() | |
| 10 { | |
| 11 var testJSFormatter = InspectorTest.testPrettyPrint.bind(InspectorTest, "tex t/javascript"); | |
| 12 | |
| 13 InspectorTest.runTestSuite([ | |
| 14 function parenthesizedExpressions(next) | |
| 15 { | |
| 16 var mappingQueries = ["if", "((a))", "((b));", "else", "(c)"]; | |
| 17 testJSFormatter("if((a))((b));else (c);", mappingQueries, next); | |
| 18 }, | |
| 19 ]); | |
| 20 } | |
| 21 | |
| 22 </script> | |
| 23 | |
| 24 </head> | |
| 25 | |
| 26 <body onload="runTest()"> | |
| 27 <p>Verifies JavaScript pretty-printing functionality.</p> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |