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> |