3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
9 function testFunction()
15 setTimeout(timeout, 0);
19 a = b = "FAIL: re-assigned";
30 var maxAsyncCallStackDepth = 4;
32 InspectorTest.setQuiet(true);
33 InspectorTest.startDebuggerTest(step1);
37 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
42 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
45 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
47 InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
49 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
50 InspectorTest.addResult("Select call frame: " + pane.placards[1].title);
51 pane._placardSelected(pane.placards[1]);
52 InspectorTest.runAfterPendingDispatches(step3);
57 InspectorTest.evaluateInConsoleAndDump("a", step4);
62 InspectorTest.evaluateInConsoleAndDump("b", tearDown);
67 InspectorTest.completeDebuggerTest();
74 <body onload="runTest()">
76 Tests evaluation in an async call frame.