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 window.callbackFromFramework = function(next)
13 function testFunction()
15 setTimeout(timeout1, 0);
20 Framework.safeRun(Framework.empty, callback1);
25 Framework.doSomeAsyncChainCalls(callback2);
35 var frameworkRegexString = "/framework\\.js$";
36 var maxAsyncCallStackDepth = 4;
38 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest();
39 WebInspector.settings.skipStackFramesSwitch.set(true);
40 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString);
42 InspectorTest.setQuiet(true);
43 InspectorTest.startDebuggerTest(step1);
47 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
52 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
55 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": false });
58 InspectorTest.addResult("\nPrinting visible call stack:");
59 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": true });
60 InspectorTest.completeDebuggerTest();
67 <body onload="runTest()">
68 <input type='button' onclick='testFunction()' value='Test'/>
70 Tests the async call stacks and framework black-boxing features working together.