3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
8 function testFunction()
14 setTimeout(timeout, 0);
18 a = b = "FAIL: re-assigned";
29 var maxAsyncCallStackDepth = 4;
31 InspectorTest.setQuiet(true);
32 InspectorTest.startDebuggerTest(step1);
36 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
41 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused);
44 function didPaused(callFrames, reason, breakpointIds, asyncStackTrace)
46 InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
48 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
49 InspectorTest.addResult("Select call frame: " + pane.placards[1].title);
50 pane._placardSelected(pane.placards[1]);
51 InspectorTest.runAfterPendingDispatches(step3);
56 InspectorTest.evaluateInConsoleAndDump("a", step4);
61 InspectorTest.evaluateInConsoleAndDump("b", tearDown);
66 InspectorTest.completeDebuggerTest();
73 <body onload="runTest()">
75 Tests evaluation in an async call frame.