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 InspectorTest
.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 var frame
= pane
.callFrames
[1];
51 InspectorTest
.addResult("Select call frame: " + frame
.title());
52 pane
._callFrameSelected(frame
);
53 InspectorTest
.runAfterPendingDispatches(step3
);
58 InspectorTest
.evaluateInConsoleAndDump("a", step4
);
63 InspectorTest
.evaluateInConsoleAndDump("b", tearDown
);
68 InspectorTest
.completeDebuggerTest();
75 <body onload=
"runTest()">
77 Tests evaluation in an async call frame.