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>
8 function testFunction()
10 Framework
.throwFrameworkExceptionAndCatch();
11 Framework
.throwInNativeAndCatch();
13 // All above should be skipped.
19 var frameworkRegexString
= "/framework\\.js$";
20 WebInspector
.settingForTest("skipStackFramesPattern").set(frameworkRegexString
);
22 InspectorTest
.setQuiet(true);
23 InspectorTest
.startDebuggerTest(step1
);
27 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.PauseOnAllExceptions
);
28 InspectorTest
.runTestFunctionAndWaitUntilPaused(didPause
);
31 function didPause(callFrames
, reason
, breakpointIds
, asyncStackTrace
)
33 InspectorTest
.captureStackTrace(callFrames
);
37 function completeTest()
39 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.DontPauseOnExceptions
);
40 InspectorTest
.completeDebuggerTest();
47 <body onload=
"runTest()">
48 <input type='button' onclick='testFunction()' value='Test'
/>
50 Tests that framework black-boxing skips exceptions, including those that happened deeper inside V8 native script.