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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html

Issue 2873713002: [DevTools] added creation stack for event listeners without scheduled stack
Patch Set: better Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html b/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
new file mode 100644
index 0000000000000000000000000000000000000000..b3e33fa9125455de662a4bcd907481f966f8ad00
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="../../inspector-test.js"></script>
+<script src="../../debugger-test.js"></script>
+<script>
+
+function testFunction()
+{
+ var img = new Image();
+ img.onload = onImageLoaded;
+ img.onerror = onImageError;
+ img.src = 'resources/image.png';
+
+ function onImageLoaded()
+ {
+ debugger;
+ img.src = 'not-found.png';
+ }
+
+ function onImageError()
+ {
+ debugger;
+ }
+}
+
+var test = function()
+{
+ var totalDebuggerStatements = 2;
+ InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements);
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests asynchronous call stacks for onload.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-onload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698