Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-frameworks / frameworks-skip-exceptions.html
blob0899fcb4c8dbfa487f4e8df273a7988b88334efb
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 src="../debugger/resources/framework.js"></script>
6 <script>
8 function testFunction()
10 Framework.throwFrameworkExceptionAndCatch();
11 Framework.throwInNativeAndCatch();
13 // All above should be skipped.
14 debugger;
17 function test()
19 var frameworkRegexString = "/framework\\.js$";
20 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
22 InspectorTest.setQuiet(true);
23 InspectorTest.startDebuggerTest(step1);
25 function step1()
27 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions);
28 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
31 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
33 InspectorTest.captureStackTrace(callFrames);
34 completeTest();
37 function completeTest()
39 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions);
40 InspectorTest.completeDebuggerTest();
44 </script>
45 </head>
47 <body onload="runTest()">
48 <input type='button' onclick='testFunction()' value='Test'/>
49 <p>
50 Tests that framework black-boxing skips exceptions, including those that happened deeper inside V8 native script.
51 </p>
52 </body>
53 </html>