3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
7 function performActions()
9 var timerOne = setTimeout("1 + 1", 10);
10 var timerTwo = setInterval(intervalTimerWork, 20);
13 function intervalTimerWork()
17 clearInterval(timerTwo);
23 InspectorTest.startTimeline(function() {
24 InspectorTest.evaluateInPage("performActions()");
27 InspectorTest.waitForRecordType("TimerRemove", finish);
31 InspectorTest.printTimelineRecords("TimerInstall");
32 InspectorTest.printTimelineRecords("TimerFire");
33 InspectorTest.printTimelineRecords("TimerRemove");
34 InspectorTest.printTimelineRecords("FunctionCall");
35 InspectorTest.printTimelineRecords("EvaluateScript");
36 InspectorTest.completeTest();
40 if (!window.testRunner)
41 setTimeout(performActions, 2000);
46 <body onload="runTest()">
48 Tests the Timeline events for Timers