| 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> | 5 <script> |
| 6 | 6 |
| 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } | 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } |
| 8 | 8 |
| 9 function f1() | 9 function f1() |
| 10 { | 10 { |
| 11 console.error("Test message."); | 11 console.error("Test message."); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function onload() | 14 function onload() |
| 15 { | 15 { |
| 16 if (window.testRunner) { | 16 if (window.testRunner) { |
| 17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
| 18 testRunner.showWebInspector(); | 18 testRunner.showWebInspector(); |
| 19 } | 19 } |
| 20 runTest(); | 20 runTest(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 var test = function() | 23 var test = function() |
| 24 { | 24 { |
| 25 var panel = WebInspector.inspectorView.showPanel("sources"); | 25 var panel = WebInspector.inspectorView.showPanel("sources"); |
| 26 var worker = new Worker("ScriptFormatterWorker.js"); | |
| 27 var sourceFrame; | 26 var sourceFrame; |
| 28 var scriptFormatter = InspectorTest.scriptFormatter(); | 27 var scriptFormatter = InspectorTest.scriptFormatter(); |
| 29 | 28 |
| 30 InspectorTest.runDebuggerTestSuite([ | 29 InspectorTest.runDebuggerTestSuite([ |
| 31 function testConsoleMessagesForFormattedScripts(next) | 30 function testConsoleMessagesForFormattedScripts(next) |
| 32 { | 31 { |
| 33 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); | 32 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); |
| 34 | 33 |
| 35 function didShowScriptSource(frame) | 34 function didShowScriptSource(frame) |
| 36 { | 35 { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 </script> | 72 </script> |
| 74 | 73 |
| 75 </head> | 74 </head> |
| 76 | 75 |
| 77 <body onload="onload()"> | 76 <body onload="onload()"> |
| 78 <p>Tests that the script formatting changes console line numbers. | 77 <p>Tests that the script formatting changes console line numbers. |
| 79 </p> | 78 </p> |
| 80 | 79 |
| 81 </body> | 80 </body> |
| 82 </html> | 81 </html> |
| OLD | NEW |