Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/frame-model-instrumentation.html

Issue 2637443004: DevTools: bring back old landing page in timeline/performance. (Closed)
Patch Set: review comments addressed Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script src="../tracing-test.js"></script> 5 <script src="../tracing-test.js"></script>
6 6
7 <script> 7 <script>
8 function doActions() 8 function doActions()
9 { 9 {
10 return generateFrames(3); 10 return generateFrames(3);
11 } 11 }
12 12
13 function test() 13 function test()
14 { 14 {
15 UI.panels.timeline._landingPage._tabbedPane.selectTab(Timeline.TimelineLandi ngPage.PageId.Advanced);
16 UI.panels.timeline._captureLayersAndPicturesSetting.set(true); 15 UI.panels.timeline._captureLayersAndPicturesSetting.set(true);
17 InspectorTest.invokeAsyncWithTimeline("doActions", InspectorTest.safeWrap(du mpLastFrame)); 16 InspectorTest.invokeAsyncWithTimeline("doActions", InspectorTest.safeWrap(du mpLastFrame));
18 function dumpLastFrame() 17 function dumpLastFrame()
19 { 18 {
20 var frames = InspectorTest.timelineFrameModel().frames(); 19 var frames = InspectorTest.timelineFrameModel().frames();
21 var lastFrame = InspectorTest.timelineFrameModel().frames().peekLast(); 20 var lastFrame = InspectorTest.timelineFrameModel().frames().peekLast();
22 if (lastFrame) { 21 if (lastFrame) {
23 InspectorTest.addResult("layerTree: " + typeof lastFrame.layerTree); 22 InspectorTest.addResult("layerTree: " + typeof lastFrame.layerTree);
24 InspectorTest.addResult("mainFrameId: " + typeof lastFrame._mainFram eId); 23 InspectorTest.addResult("mainFrameId: " + typeof lastFrame._mainFram eId);
25 var paints = lastFrame.layerTree.paints(); 24 var paints = lastFrame.layerTree.paints();
26 InspectorTest.addResult("paints: " + (paints && paints.length ? "pre sent" : "absent")); 25 InspectorTest.addResult("paints: " + (paints && paints.length ? "pre sent" : "absent"));
27 } else { 26 } else {
28 InspectorTest.addResult("FAIL: there was no frame"); 27 InspectorTest.addResult("FAIL: there was no frame");
29 } 28 }
30 InspectorTest.completeTest(); 29 InspectorTest.completeTest();
31 } 30 }
32 } 31 }
33 </script> 32 </script>
34 33
35 <body onload="runTestAfterDisplay()"> 34 <body onload="runTestAfterDisplay()">
36 </body> 35 </body>
37 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698