3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
7 function performActions()
9 window.internals.emitInspectorDidBeginFrame();
10 console.timeStamp("FRAME 1");
12 window.internals.emitInspectorDidBeginFrame();
13 window.internals.emitInspectorDidCancelFrame();
15 window.internals.emitInspectorDidBeginFrame();
16 console.timeStamp("FRAME 2");
17 window.internals.emitInspectorDidCancelFrame();
22 function formatRecord(record)
24 if (record.type() === WebInspector.TimelineModel.RecordType.TimeStamp ||
25 record.type() === WebInspector.TimelineModel.RecordType.BeginFrame) {
26 InspectorTest.dumpTimelineRecord(record);
30 InspectorTest.startTimeline(function() {
31 InspectorTest.evaluateInPage("performActions()", step2);
36 InspectorTest.stopTimeline(finish);
41 InspectorTest.printTimelineRecords(null, formatRecord);
42 InspectorTest.completeTest();
49 <body onload="runTest()">
51 Tests reporting and canceling of didBeginFrame events in Timeline