Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-pause-on-exception.html
blobd5e6ddf135cf3c8bb6fe49ab9b0213b26806b8a8
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
7 function throwAnException()
9 return unknown_var;
12 function handleClick()
14 throwAnException();
17 var test = function()
19 InspectorTest.startDebuggerTest(step1);
21 function step1()
23 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
24 InspectorTest.showScriptSource("debugger-pause-on-exception.html", step2);
27 function step2()
29 InspectorTest.addResult("Script source was shown.");
30 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)");
31 InspectorTest.waitUntilPausedAndDumpStackAndResume(step3);
34 function step3()
36 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions);
37 InspectorTest.completeDebuggerTest();
41 </script>
42 </head>
44 <body onload="runTest()">
45 <p>
46 Tests that pause on exception works.
47 </p>
49 </body>
50 </html>