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"); |
26 var sourceFrame; | 27 var sourceFrame; |
27 var scriptFormatter = InspectorTest.scriptFormatter(); | 28 var scriptFormatter = InspectorTest.scriptFormatter(); |
28 | 29 |
29 InspectorTest.runDebuggerTestSuite([ | 30 InspectorTest.runDebuggerTestSuite([ |
30 function testConsoleMessagesForFormattedScripts(next) | 31 function testConsoleMessagesForFormattedScripts(next) |
31 { | 32 { |
32 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); | 33 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); |
33 | 34 |
34 function didShowScriptSource(frame) | 35 function didShowScriptSource(frame) |
35 { | 36 { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 </script> | 73 </script> |
73 | 74 |
74 </head> | 75 </head> |
75 | 76 |
76 <body onload="onload()"> | 77 <body onload="onload()"> |
77 <p>Tests that the script formatting changes console line numbers. | 78 <p>Tests that the script formatting changes console line numbers. |
78 </p> | 79 </p> |
79 | 80 |
80 </body> | 81 </body> |
81 </html> | 82 </html> |
OLD | NEW |