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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html

Issue 383363002: DevTools: Fix async stacks instrumentation for XHRs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html b/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
index 74b89cb79e1dd97251ec6a9ef1f85121dbaf8275..34e2baf221d4aa4d27cced9f5ce22bae634afcf5 100644
--- a/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
+++ b/LayoutTests/inspector/sources/debugger/async-callstack-xhrs.html
@@ -30,9 +30,14 @@ function sendXHR(async)
debugger;
}
};
- function downloadEnd()
+ function downloadEnd1()
{
- xhr.removeEventListener("loadend", downloadEnd, false);
+ xhr.removeEventListener("loadend", downloadEnd1, false);
+ debugger;
+ }
+ function downloadEnd2()
+ {
+ xhr.removeEventListener("loadend", downloadEnd2, true);
debugger;
}
function uploadEnd()
@@ -50,7 +55,8 @@ function sendXHR(async)
debugger;
xhr.upload.removeEventListener("progress", uploadProgress, false);
}
- xhr.addEventListener("loadend", downloadEnd, false);
+ xhr.addEventListener("loadend", downloadEnd1, false);
+ xhr.addEventListener("loadend", downloadEnd2, true);
if (async) {
xhr.upload.addEventListener("loadend", uploadEnd, false);
xhr.addEventListener("progress", downloadProgress, false);
@@ -62,7 +68,7 @@ function sendXHR(async)
var test = function()
{
- var totalDebuggerStatements = 7;
+ var totalDebuggerStatements = 9;
var maxAsyncCallStackDepth = 4;
InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
}

Powered by Google App Engine
This is Rietveld 408576698