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

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

Issue 114033002: DevTools: Capture async stacks for event listeners. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: construct event description Created 7 years 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/debugger/async-callstack.html
diff --git a/LayoutTests/inspector/debugger/async-callstack.html b/LayoutTests/inspector/debugger/async-callstack.html
index fa19a8dd3f3ef79d11882f0d35a4dc51b8e11ad7..27f58b6779fa2462d1e85dd3bf51b966526dc236 100644
--- a/LayoutTests/inspector/debugger/async-callstack.html
+++ b/LayoutTests/inspector/debugger/async-callstack.html
@@ -11,6 +11,7 @@ function testFunction()
timeout1();
}
setTimeout(innerTestFunction, 0);
+ document.getElementById("image").addEventListener("error", imageErrorHandler, false);
}
function timeout1()
@@ -44,6 +45,7 @@ function timeout2()
function animFrame2()
{
+ document.getElementById("image").addEventListener("error", imageErrorHandler, true);
debugger;
function longTail0()
{
@@ -59,11 +61,17 @@ function animFrame2()
function timeout3()
{
debugger;
+ image.src = "non_existing.png";
+}
+
+function imageErrorHandler()
+{
+ debugger; // should hit 3 times with different async stacks
}
var test = function()
{
- var totalDebuggerStatements = 6;
+ var totalDebuggerStatements = 9;
var maxAsyncCallStackDepth = 4;
InspectorTest.setQuiet(true);
@@ -106,6 +114,7 @@ var test = function()
<p>
Tests asynchronous call stacks in debugger.
</p>
+<img id="image" onerror="imageErrorHandler()"></img>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698