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 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
52 Framework
.safeRun(Framework
.doSomeWorkDoNotChangeTopCallFrame
, callback
);
57 var frameworkRegexString
= "/framework\\.js$";
58 var totalDebuggerStatements
= 6;
60 WebInspector
.settingForTest("skipStackFramesPattern").set(frameworkRegexString
);
62 InspectorTest
.setQuiet(true);
63 InspectorTest
.startDebuggerTest(step1
);
67 InspectorTest
.runTestFunctionAndWaitUntilPaused(didPause
);
72 function didPause(callFrames
, reason
, breakpointIds
, asyncStackTrace
)
74 if (stepInCount
< 2) {
76 WebInspector
.panels
.sources
._stepIntoButton
.element
.click();
77 InspectorTest
.waitUntilResumed(InspectorTest
.waitUntilPaused
.bind(InspectorTest
, didPause
));
82 InspectorTest
.captureStackTrace(callFrames
);
83 InspectorTest
.addResult("");
84 if (++step
< totalDebuggerStatements
)
85 InspectorTest
.resumeExecution(InspectorTest
.waitUntilPaused
.bind(InspectorTest
, didPause
));
87 InspectorTest
.completeDebuggerTest();
94 <body onload=
"runTest()">
95 <input type='button' onclick='testFunction()' value='Test'
/>
97 Tests the skip stack frames feature when stepping.