Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-async / async-callstack-set-interval.html
blobbca5e643763c2774832fcc66aead552088f2929f
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;
9 function testFunction()
11 intervalId = setInterval(callback, 0);
14 function callback()
16 if (count === 0) {
17 debugger;
18 } else if (count === 1) {
19 debugger;
20 } else {
21 clearInterval(intervalId);
22 debugger;
24 ++count;
27 function test()
29 var totalDebuggerStatements = 3;
30 var maxAsyncCallStackDepth = 4;
31 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
34 </script>
35 </head>
37 <body onload="runTest()">
38 <p>
39 Tests asynchronous call stacks for setInterval.
40 </p>
41 </body>
42 </html>