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

Side by Side Diff: LayoutTests/virtual/implsidepainting/inspector/tracing/paint-command-log-nodes.html

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: avoid keep stale model in TimelineFrameModel Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 </style> 4 </style>
5 <script src="../../../../http/tests/inspector/inspector-test.js"></script> 5 <script src="../../../../http/tests/inspector/inspector-test.js"></script>
6 <script src="../../../../http/tests/inspector/timeline-test.js"></script> 6 <script src="../../../../http/tests/inspector/timeline-test.js"></script>
7 <script src="../../../../inspector/tracing-test.js"></script> 7 <script src="../../../../inspector/tracing-test.js"></script>
8 <script> 8 <script>
9 9
10 function doActions(callback) 10 function doActions(callback)
11 { 11 {
12 document.getElementById("a").style.visibility = "visible"; 12 document.getElementById("a").style.visibility = "visible";
13 requestAnimationFrame(function() { 13 requestAnimationFrame(function() {
14 testRunner.displayAsyncThen(callback); 14 testRunner.displayAsyncThen(callback);
15 }); 15 });
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 var imageCount = 0; 20 var imageCount = 0;
21 21
22 InspectorTest.invokeWithTracing("doActions", onTracingComplete, "disabled-by -default-blink.graphics_context_annotations"); 22 InspectorTest.invokeWithTracing("doActions", onTracingComplete, "disabled-by -default-blink.graphics_context_annotations");
23 23
24
25 var inFlightPictures = 0; 24 var inFlightPictures = 0;
26 function onTracingComplete() 25 function onTracingComplete()
27 { 26 {
28 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents( ); 27 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents( );
29 for (var i = 0; i < events.length; ++i) { 28 for (var i = 0; i < events.length; ++i) {
30 var event = events[i]; 29 var event = events[i];
31 if (event.name !== WebInspector.TimelineModel.RecordType.Paint) 30 if (event.name !== WebInspector.TimelineModel.RecordType.Paint)
32 continue; 31 continue;
33 if (!event.picture) 32 if (!event.picture)
34 continue; 33 continue;
35 ++inFlightPictures; 34 ++inFlightPictures;
36 new WebInspector.LayerPaintEvent(event).loadPicture(onSnapshotLoaded ); 35 new WebInspector.LayerPaintEvent(event, InspectorTest.timelineModel( ).target()).loadPicture(onSnapshotLoaded);
37 } 36 }
38 if (!inFlightPictures) 37 if (!inFlightPictures)
39 InspectorTest.completeTest(); 38 InspectorTest.completeTest();
40 } 39 }
41 40
42 function onSnapshotLoaded(rect, snapshot) 41 function onSnapshotLoaded(rect, snapshot)
43 { 42 {
44 snapshot.commandLog(onGotLog); 43 snapshot.commandLog(onGotLog);
45 } 44 }
46 45
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 </p> 93 </p>
95 <div id="a" style="visibility:hidden; transform: translateZ(0px); background-col or:blue; width:100px; height:100px;"> 94 <div id="a" style="visibility:hidden; transform: translateZ(0px); background-col or:blue; width:100px; height:100px;">
96 <div id="b" style="width:50px; height:50px; background-color:red;"></div> 95 <div id="b" style="width:50px; height:50px; background-color:red;"></div>
97 <img id="c" src="../timeline/resources/test.png"> 96 <img id="c" src="../timeline/resources/test.png">
98 <svg id="d"> 97 <svg id="d">
99 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/> 98 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/>
100 </svg> 99 </svg>
101 </div> 100 </div>
102 </body> 101 </body>
103 </html> 102 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/tracing/timeline-script-id.html ('k') | Source/devtools/front_end/sdk/TracingManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698