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.settings.skipStackFramesPattern.set(frameworkRegexString);
40 InspectorTest.setQuiet(true);
41 InspectorTest.startDebuggerTest(step1);
45 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
50 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
53 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
55 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": false });
56 InspectorTest.addResult("\nPrinting visible call stack:");
57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": true });
58 InspectorTest.completeDebuggerTest();
65 <body onload="runTest()">
66 <input type='button' onclick='testFunction()' value='Test'/>
68 Tests the async call stacks and framework black-boxing features working together.