3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
7 function performActions(callback
)
9 var timerOne
= setTimeout("1 + 1", 10);
10 var timerTwo
= setInterval(intervalTimerWork
, 20);
13 function intervalTimerWork()
17 clearInterval(timerTwo
);
24 InspectorTest
.invokeAsyncWithTimeline("performActions", finish
);
28 InspectorTest
.printTimelineRecords("TimerInstall");
29 InspectorTest
.printTimelineRecords("TimerFire");
30 InspectorTest
.printTimelineRecords("TimerRemove");
31 InspectorTest
.printTimelineRecords("FunctionCall");
32 InspectorTest
.printTimelineRecords("EvaluateScript");
33 InspectorTest
.completeTest();
37 if (!window
.testRunner
)
38 setTimeout(performActions
, 2000);
43 <body onload=
"runTest()">
45 Tests the Timeline events for Timers