3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
5 <script src=
"../tracing-test.js"></script>
8 function doActions(callback
)
10 generateFrames(3, callback
);
15 WebInspector
.panels
.timeline
._captureLayersAndPicturesSetting
.set(true);
16 InspectorTest
.invokeAsyncWithTimeline("doActions", InspectorTest
.safeWrap(dumpLastFrame
));
17 function dumpLastFrame()
19 var frames
= InspectorTest
.timelineFrameModel().frames();
20 var lastFrame
= InspectorTest
.timelineFrameModel().frames().peekLast();
22 InspectorTest
.addResult("layerTree: " + typeof lastFrame
.layerTree
);
23 InspectorTest
.addResult("mainFrameId: " + typeof lastFrame
._mainFrameId
);
24 InspectorTest
.addResult("paints: " + (lastFrame
.paints
&& lastFrame
.paints
.length
? "present" : "absent"));
26 InspectorTest
.addResult("FAIL: there was no frame");
28 InspectorTest
.completeTest();
33 <body onload=
"runTestAfterDisplay()">