| 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 var test = function() | 14 var test = function() |
| 15 { | 15 { |
| 16 var panel = WebInspector.panels.scripts; | 16 var panel = WebInspector.panels.sources; |
| 17 var worker = new Worker("ScriptFormatterWorker.js"); | 17 var worker = new Worker("ScriptFormatterWorker.js"); |
| 18 var sourceFrame; | 18 var sourceFrame; |
| 19 | 19 |
| 20 InspectorTest.runDebuggerTestSuite([ | 20 InspectorTest.runDebuggerTestSuite([ |
| 21 function testConsoleMessagesForFormattedScripts(next) | 21 function testConsoleMessagesForFormattedScripts(next) |
| 22 { | 22 { |
| 23 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); | 23 InspectorTest.showScriptSource("script-formatter-console.html", didS
howScriptSource); |
| 24 | 24 |
| 25 function didShowScriptSource(frame) | 25 function didShowScriptSource(frame) |
| 26 { | 26 { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 </script> | 63 </script> |
| 64 | 64 |
| 65 </head> | 65 </head> |
| 66 | 66 |
| 67 <body onload="runTest()"> | 67 <body onload="runTest()"> |
| 68 <p>Tests that the script formatting changes console line numbers. | 68 <p>Tests that the script formatting changes console line numbers. |
| 69 </p> | 69 </p> |
| 70 | 70 |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |