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 22 matching lines...) Expand all Loading... |
33 continue; | 33 continue; |
34 ++inFlightPictures; | 34 ++inFlightPictures; |
35 processPicture(event.picture); | 35 processPicture(event.picture); |
36 } | 36 } |
37 if (!inFlightPictures) | 37 if (!inFlightPictures) |
38 InspectorTest.completeTest(); | 38 InspectorTest.completeTest(); |
39 } | 39 } |
40 | 40 |
41 function processPicture(picture) | 41 function processPicture(picture) |
42 { | 42 { |
43 WebInspector.PaintProfilerSnapshot.load(InspectorTest.tracingTimelineMod
el.target(), picture, onSnapshotLoaded); | 43 WebInspector.PaintProfilerSnapshot.load(WebInspector.targetManager.targe
ts()[0], picture, onSnapshotLoaded); |
44 } | 44 } |
45 | 45 |
46 function onSnapshotLoaded(snapshot) | 46 function onSnapshotLoaded(snapshot) |
47 { | 47 { |
48 snapshot.commandLog(onGotLog); | 48 snapshot.commandLog(onGotLog); |
49 } | 49 } |
50 | 50 |
51 function onGotLog(log) | 51 function onGotLog(log) |
52 { | 52 { |
53 var seenNodes = {}; | 53 var seenNodes = {}; |
(...skipping 44 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 |