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) |
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("-*,disabled-by-default-devtools.timeline*,d
isabled-by-default-blink.graphics_context_annotations", "doActions", onTracingCo
mplete); | 22 InspectorTest.invokeWithTracing("doActions", onTracingComplete, "disabled-by
-default-blink.graphics_context_annotations"); |
23 | 23 |
24 var inFlightPictures = 0; | 24 var inFlightPictures = 0; |
25 function onTracingComplete() | 25 function onTracingComplete() |
26 { | 26 { |
27 var events = InspectorTest.tracingTimelineModel.inspectedTargetEvents(); | 27 var events = InspectorTest.tracingTimelineModel.inspectedTargetEvents(); |
28 for (var i = 0; i < events.length; ++i) { | 28 for (var i = 0; i < events.length; ++i) { |
29 var event = events[i]; | 29 var event = events[i]; |
30 if (event.name !== WebInspector.TracingTimelineModel.RecordType.Pain
t) | 30 if (event.name !== WebInspector.TracingTimelineModel.RecordType.Pain
t) |
31 continue; | 31 continue; |
32 if (!event.picture) | 32 if (!event.picture) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 </p> | 98 </p> |
99 <div id="a" style="visibility:hidden; -webkit-transform: translateZ(0px); backgr
ound-color:blue; width:100px; height:100px;"> | 99 <div id="a" style="visibility:hidden; -webkit-transform: translateZ(0px); backgr
ound-color:blue; width:100px; height:100px;"> |
100 <div id="b" style="width:50px; height:50px; background-color:red;"></div> | 100 <div id="b" style="width:50px; height:50px; background-color:red;"></div> |
101 <img id="c" src="../timeline/resources/test.png"> | 101 <img id="c" src="../timeline/resources/test.png"> |
102 <svg id="d"> | 102 <svg id="d"> |
103 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/> | 103 <rect id="e" x="0" y="0" width="10" height="10" style="opacity:0.5"/> |
104 </svg> | 104 </svg> |
105 </div> | 105 </div> |
106 </body> | 106 </body> |
107 </html> | 107 </html> |
OLD | NEW |