Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html |
index 5063c695ab24b64cd6dedb39116b75ccbf18e148..365f302fba380c60f03a9fe3e654d6201b76ea8e 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html |
@@ -6,6 +6,7 @@ |
<script> |
var a = "FAIL"; |
+var g = "PASS"; |
function testFunction() |
{ |
var a = "PASS"; |
@@ -46,11 +47,16 @@ var test = function() |
{ |
InspectorTest.captureStackTrace(callFrames, asyncStackTrace); |
+ selectCallFrameAndRun(1, step3); |
+ } |
+ |
+ function selectCallFrameAndRun(frameNumber, callback) |
+ { |
var pane = WebInspector.panels.sources.sidebarPanes.callstack; |
- var frame = pane.callFrames[1]; |
+ var frame = pane.callFrames[frameNumber]; |
InspectorTest.addResult("Select call frame: " + frame.title()); |
pane._callFrameSelected(frame); |
- InspectorTest.runAfterPendingDispatches(step3); |
+ InspectorTest.runAfterPendingDispatches(callback); |
} |
function step3() |
@@ -60,7 +66,17 @@ var test = function() |
function step4() |
{ |
- InspectorTest.evaluateInConsoleAndDump("b", tearDown); |
+ InspectorTest.evaluateInConsoleAndDump("b", step5); |
+ } |
+ |
+ function step5() |
+ { |
+ selectCallFrameAndRun(3, step6); |
+ } |
+ |
+ function step6() |
+ { |
+ InspectorTest.evaluateInConsoleAndDump("g", tearDown); |
} |
function tearDown() |