3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
9 function innerTestFunction()
13 setTimeout(innerTestFunction
, 0);
19 requestAnimationFrame(animFrame1
);
20 var id
= setInterval(innerInterval1
, 0);
21 function innerInterval1()
31 setTimeout(timeout2
, 0);
32 requestAnimationFrame(animFrame2
);
53 for (var i
= 0; i
< 20; ++i
)
54 funcs
.push("function longTail" + (i
+ 1) + "() { setTimeout(longTail" + i
+ ", 0); };");
55 funcs
.push("setTimeout(longTail" + i
+ ", 0);");
56 eval(funcs
.join("\n"));
66 var totalDebuggerStatements
= 6;
67 var maxAsyncCallStackDepth
= 4;
68 InspectorTest
.runAsyncCallStacksTest(totalDebuggerStatements
, maxAsyncCallStackDepth
);
74 <body onload=
"runTest()">
76 Tests asynchronous call stacks in debugger.