3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function throwAnException()
12 function handleClick()
19 InspectorTest
.startDebuggerTest(step1
);
23 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.PauseOnUncaughtExceptions
);
24 InspectorTest
.showScriptSource("debugger-pause-on-exception.html", step2
);
29 InspectorTest
.addResult("Script source was shown.");
30 InspectorTest
.evaluateInPage("setTimeout(handleClick, 0)");
31 InspectorTest
.waitUntilPausedAndDumpStackAndResume(step3
);
36 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.DontPauseOnExceptions
);
37 InspectorTest
.completeDebuggerTest();
44 <body onload=
"runTest()">
46 Tests that pause on exception works.