| 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 intervalId; | |
| 7 var count = 0; | |
| 8 | |
| 9 function testFunction() | |
| 10 { | |
| 11 intervalId = setInterval(callback, 0); | |
| 12 } | |
| 13 | |
| 14 function callback() | |
| 15 { | |
| 16 if (count === 0) { | |
| 17 debugger; | |
| 18 } else if (count === 1) { | |
| 19 debugger; | |
| 20 } else { | |
| 21 clearInterval(intervalId); | |
| 22 debugger; | |
| 23 } | |
| 24 ++count; | |
| 25 } | |
| 26 | |
| 27 function test() | |
| 28 { | |
| 29 var totalDebuggerStatements = 3; | |
| 30 var maxAsyncCallStackDepth = 4; | |
| 31 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); | |
| 32 } | |
| 33 | |
| 34 </script> | |
| 35 </head> | |
| 36 | |
| 37 <body onload="runTest()"> | |
| 38 <p> | |
| 39 Tests asynchronous call stacks for setInterval. | |
| 40 </p> | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |