Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / timeline-timer.html
blobcb03e235e83100d15d79e416ade2d59dc0eedcea
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
7 function performActions(callback)
9 var timerOne = setTimeout("1 + 1", 10);
10 var timerTwo = setInterval(intervalTimerWork, 20);
11 var iteration = 0;
13 function intervalTimerWork()
15 if (++iteration < 2)
16 return;
17 clearInterval(timerTwo);
18 callback();
22 function test()
24 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
26 function 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);
40 </script>
41 </head>
43 <body onload="runTest()">
44 <p>
45 Tests the Timeline events for Timers
46 </p>
47 </body>
48 </html>