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

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

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: a Created 4 years, 4 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(callback) 8 function doActions()
9 { 9 {
10 generateFrames(3, callback); 10 return generateFrames(3);
11 } 11 }
12 12
13 function test() 13 function test()
14 { 14 {
15 WebInspector.panels.timeline._captureLayersAndPicturesSetting.set(true); 15 WebInspector.panels.timeline._captureLayersAndPicturesSetting.set(true);
16 InspectorTest.invokeAsyncWithTimeline("doActions", InspectorTest.safeWrap(du mpLastFrame)); 16 InspectorTest.invokeAsyncWithTimeline("doActions", InspectorTest.safeWrap(du mpLastFrame));
17 function dumpLastFrame() 17 function dumpLastFrame()
18 { 18 {
19 var frames = InspectorTest.timelineFrameModel().frames(); 19 var frames = InspectorTest.timelineFrameModel().frames();
20 var lastFrame = InspectorTest.timelineFrameModel().frames().peekLast(); 20 var lastFrame = InspectorTest.timelineFrameModel().frames().peekLast();
21 if (lastFrame) { 21 if (lastFrame) {
22 InspectorTest.addResult("layerTree: " + typeof lastFrame.layerTree); 22 InspectorTest.addResult("layerTree: " + typeof lastFrame.layerTree);
23 InspectorTest.addResult("mainFrameId: " + typeof lastFrame._mainFram eId); 23 InspectorTest.addResult("mainFrameId: " + typeof lastFrame._mainFram eId);
24 InspectorTest.addResult("paints: " + (lastFrame.paints && lastFrame. paints.length ? "present" : "absent")); 24 InspectorTest.addResult("paints: " + (lastFrame.paints && lastFrame. paints.length ? "present" : "absent"));
25 } else { 25 } else {
26 InspectorTest.addResult("FAIL: there was no frame"); 26 InspectorTest.addResult("FAIL: there was no frame");
27 } 27 }
28 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
29 } 29 }
30 } 30 }
31 </script> 31 </script>
32 32
33 <body onload="runTestAfterDisplay()"> 33 <body onload="runTestAfterDisplay()">
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698