| OLD | NEW |
| 1 function test() | 1 function test() |
| 2 { | 2 { |
| 3 InspectorTest.startDebuggerTest(step1); | 3 InspectorTest.startDebuggerTest(step1); |
| 4 | 4 |
| 5 function step1() | 5 function step1() |
| 6 { | 6 { |
| 7 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.PauseOnUncaughtExceptions); | 7 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.PauseOnUncaughtExceptions); |
| 8 InspectorTest.evaluateInPage("setTimeout(testAction, 100);"); | 8 InspectorTest.evaluateInPage("setTimeout(testAction, 100);"); |
| 9 InspectorTest.waitUntilPausedAndDumpStackAndResume(step2); | 9 InspectorTest.waitUntilPausedAndDumpStackAndResume(step2); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function step2() | 12 function step2() |
| 13 { | 13 { |
| 14 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); | 14 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo
del.PauseOnExceptionsState.DontPauseOnExceptions); |
| 15 InspectorTest.completeDebuggerTest(); | 15 InspectorTest.completeDebuggerTest(); |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 window.addEventListener("load", runTest); | 19 window.addEventListener("load", runTest.bind(null, false)); |
| OLD | NEW |