Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-eval.html

Issue 1380573002: DevTools: fix evaluation on the last async call stack in chain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaselined async-callstack-filesystem.html Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698