| OLD | NEW |
| 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) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 | 24 |
| 25 var inFlightPictures = 0; | 25 var inFlightPictures = 0; |
| 26 function onTracingComplete() | 26 function onTracingComplete() |
| 27 { | 27 { |
| 28 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); | 28 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); |
| 29 for (var i = 0; i < events.length; ++i) { | 29 for (var i = 0; i < events.length; ++i) { |
| 30 var event = events[i]; | 30 var event = events[i]; |
| 31 if (event.name !== WebInspector.TracingTimelineModel.RecordType.Pain
t) | 31 if (event.name !== WebInspector.TimelineModel.RecordType.Paint) |
| 32 continue; | 32 continue; |
| 33 if (!event.picture) | 33 if (!event.picture) |
| 34 continue; | 34 continue; |
| 35 ++inFlightPictures; | 35 ++inFlightPictures; |
| 36 new WebInspector.LayerPaintEvent(event).loadPicture(onSnapshotLoaded
); | 36 new WebInspector.LayerPaintEvent(event).loadPicture(onSnapshotLoaded
); |
| 37 } | 37 } |
| 38 if (!inFlightPictures) | 38 if (!inFlightPictures) |
| 39 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
| 40 } | 40 } |
| 41 | 41 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 </p> | 94 </p> |
| 95 <div id="a" style="visibility:hidden; transform: translateZ(0px); background-col
or:blue; width:100px; height:100px;"> | 95 <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> | 96 <div id="b" style="width:50px; height:50px; background-color:red;"></div> |
| 97 <img id="c" src="../timeline/resources/test.png"> | 97 <img id="c" src="../timeline/resources/test.png"> |
| 98 <svg id="d"> | 98 <svg id="d"> |
| 99 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/> | 99 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/> |
| 100 </svg> | 100 </svg> |
| 101 </div> | 101 </div> |
| 102 </body> | 102 </body> |
| 103 </html> | 103 </html> |
| OLD | NEW |