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

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

Issue 374903002: DevTools: Async call stacks for Promises and Object.observe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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-object-observe.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-object-observe.html b/LayoutTests/inspector/sources/debugger/async-callstack-object-observe.html
new file mode 100644
index 0000000000000000000000000000000000000000..1e351460c3dd05c668878a698f5212805fb42567
--- /dev/null
+++ b/LayoutTests/inspector/sources/debugger/async-callstack-object-observe.html
@@ -0,0 +1,51 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+var obj = {};
+
+function testFunction()
+{
+ setTimeout(timeout1, 0);
+}
+
+function timeout1()
+{
+ Object.observe(obj, observer);
+ setTimeout(timeout2, 0);
+}
+
+function timeout2()
+{
+ addProperties();
+}
+
+function addProperties()
+{
+ obj.foo = 1;
+ obj.bar = 2;
+}
+
+function observer()
+{
+ debugger;
+}
+
+var test = function()
+{
+ var totalDebuggerStatements = 1;
+ var maxAsyncCallStackDepth = 4;
+ InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests asynchronous call stacks for Object.observe().
+</p>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/sources/debugger/async-callstack-object-observe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698