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()
12 // Should not pause on console.assert() inside framework.
13 .then(Framework
.bind(Framework
.assert
, null, false, "Assert from test"))
14 // Should not pause on setTimeout inside the framework.
15 .then(Framework
.willSchedule(Framework
.empty
, 0))
17 .catch(function FAIL_should_not_pause(e
) { debugger; throw e
; });
22 setTimeout(function() {}, 0); // Should pause here.
27 var frameworkRegexString
= "/framework\\.js$";
28 WebInspector
.settingForTest("skipStackFramesPattern").set(frameworkRegexString
);
30 var pane
= WebInspector
.panels
.sources
.sidebarPanes
.eventListenerBreakpoints
;
32 InspectorTest
.startDebuggerTest(step1
, true);
36 InspectorTest
.runTestFunctionAndWaitUntilPaused(step2
);
41 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.PauseOnAllExceptions
);
42 pane
._setBreakpoint("instrumentation:setTimer");
43 InspectorTest
.resumeExecution(InspectorTest
.waitUntilPaused
.bind(InspectorTest
, didPause
));
46 function didPause(callFrames
, reason
, breakpointIds
, asyncStackTrace
)
48 InspectorTest
.captureStackTrace(callFrames
);
52 function completeTest()
54 InspectorTest
.DebuggerAgent
.setPauseOnExceptions(WebInspector
.DebuggerModel
.PauseOnExceptionsState
.DontPauseOnExceptions
);
55 pane
._removeBreakpoint("instrumentation:setTimer");
56 InspectorTest
.completeDebuggerTest();
63 <body onload=
"runTest()">
64 <input type='button' onclick='testFunction()' value='Test'
/>
66 Tests that framework blackboxing skips instant pauses (e.g. breakpoints on console.assert(), setTimeout(), etc.) if they happen entirely inside the framework.