| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../inspector-test.js"></script> | 3 <script src="../../inspector-test.js"></script> |
| 4 <script src="../../debugger-test.js"></script> | 4 <script src="../../debugger-test.js"></script> |
| 5 <script src="../../console-test.js"></script> | 5 <script src="../../console-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function installWorker() | 9 function installWorker() |
| 10 { | 10 { |
| 11 new Worker("resources/worker-compiled.js"); | 11 new Worker("resources/worker-compiled.js"); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function test() | 14 function test() |
| 15 { | 15 { |
| 16 InspectorTest.startDebuggerTest(step1); | 16 InspectorTest.startDebuggerTest(step1); |
| 17 | 17 |
| 18 function step1() | 18 function step1() |
| 19 { | 19 { |
| 20 InspectorTest.evaluateInPage("installWorker()"); | 20 InspectorTest.evaluateInPage("installWorker()"); |
| 21 InspectorTest.waitUntilPaused(paused); | 21 InspectorTest.waitUntilPaused(paused); |
| 22 InspectorTest.addSniffer(Bindings.CompilerScriptMapping.prototype, "_sou
rceMapLoaded", sourceMapLoaded); | 22 InspectorTest.addSniffer(Bindings.CompilerScriptMapping.prototype, "_sou
rceMapAttachedForTest", sourceMapLoaded); |
| 23 } | 23 } |
| 24 | 24 |
| 25 var callFrames; | 25 var callFrames; |
| 26 var callbacksLeft = 2; | 26 var callbacksLeft = 2; |
| 27 | 27 |
| 28 function paused(callFramesParam) | 28 function paused(callFramesParam) |
| 29 { | 29 { |
| 30 callFrames = callFramesParam; | 30 callFrames = callFramesParam; |
| 31 maybeFinishTest(); | 31 maybeFinishTest(); |
| 32 } | 32 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 </script> | 48 </script> |
| 49 | 49 |
| 50 </head> | 50 </head> |
| 51 | 51 |
| 52 <body onload="runTest()"> | 52 <body onload="runTest()"> |
| 53 <p>Tests stopping in debugger in the worker with source mapping.</p> | 53 <p>Tests stopping in debugger in the worker with source mapping.</p> |
| 54 </body> | 54 </body> |
| 55 </html> | 55 </html> |
| OLD | NEW |