3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="resources/framework.js"></script>
8 function testFunction()
10 for (var i = 1, func; func = eval("typeof test" + i + " === 'function' && test" + i); ++i)
28 Framework.doSomeWork();
34 Framework.safeRun(Framework.empty, callback); // Should step into callback
40 Framework.safeRun(Framework.doSomeWork, callback); // Should NOT step into callback (otherwise too many StepIns)
46 Framework.safeRun(Framework.empty, Framework.throwFrameworkException, callback); // Should be enough to step into callback
51 var frameworkRegexString = "/framework\\.js$";
52 var totalDebuggerStatements = 5;
54 InspectorTest.setQuiet(true);
55 InspectorTest.startDebuggerTest(step1);
59 DebuggerAgent.skipStackFrames(frameworkRegexString, step2);
64 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
69 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
71 if (stepInCount < 2) {
73 WebInspector.panels.sources._stepIntoButton.element.click();
74 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
79 InspectorTest.captureStackTrace(callFrames);
80 InspectorTest.addResult("");
81 if (++step < totalDebuggerStatements)
82 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
84 InspectorTest.completeDebuggerTest();
91 <body onload="runTest()">
92 <input type='button' onclick='testFunction()' value='Test'/>
94 Tests the skip stack frames feature when stepping.