OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> |
| 6 var obj = {}; |
| 7 |
| 8 function testFunction() |
| 9 { |
| 10 setTimeout(timeout1, 0); |
| 11 } |
| 12 |
| 13 function timeout1() |
| 14 { |
| 15 Object.observe(obj, observer); |
| 16 setTimeout(timeout2, 0); |
| 17 } |
| 18 |
| 19 function timeout2() |
| 20 { |
| 21 addProperties(); |
| 22 } |
| 23 |
| 24 function addProperties() |
| 25 { |
| 26 obj.foo = 1; |
| 27 obj.bar = 2; |
| 28 } |
| 29 |
| 30 function observer() |
| 31 { |
| 32 debugger; |
| 33 } |
| 34 |
| 35 var test = function() |
| 36 { |
| 37 var totalDebuggerStatements = 1; |
| 38 var maxAsyncCallStackDepth = 4; |
| 39 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); |
| 40 } |
| 41 |
| 42 </script> |
| 43 </head> |
| 44 |
| 45 <body onload="runTest()"> |
| 46 <p> |
| 47 Tests asynchronous call stacks for Object.observe(). |
| 48 </p> |
| 49 |
| 50 </body> |
| 51 </html> |
OLD | NEW |