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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-events.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-events.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-events.html b/LayoutTests/inspector/sources/debugger/async-callstack-events.html
index 778da2d68ed89c0271a04fa8fe57a08ec5ea6b3f..05b1d1d53b66a4ad457e861f845ecf7abcb6e70a 100644
--- a/LayoutTests/inspector/sources/debugger/async-callstack-events.html
+++ b/LayoutTests/inspector/sources/debugger/async-callstack-events.html
@@ -41,13 +41,20 @@ function onSelectionChange()
function doTestHashChange()
{
- window.addEventListener("hashchange", onHashChange, false);
+ window.addEventListener("hashchange", onHashChange1, false);
+ window.addEventListener("hashchange", onHashChange2, true);
aandrey 2014/07/12 16:21:28 Note: this test would also pass before, just addin
location.hash = location.hash + "x";
}
-function onHashChange()
+function onHashChange1()
{
- window.removeEventListener("hashchange", onHashChange, false);
+ window.removeEventListener("hashchange", onHashChange1, false);
+ debugger;
+}
+
+function onHashChange2()
+{
+ window.removeEventListener("hashchange", onHashChange2, true);
debugger;
}
@@ -66,7 +73,7 @@ function onVideoPlay()
var test = function()
{
- var totalDebuggerStatements = 3;
+ var totalDebuggerStatements = 4;
var maxAsyncCallStackDepth = 4;
InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
}

Powered by Google App Engine
This is Rietveld 408576698