OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .layer { | 4 .layer { |
5 position: absolute; | 5 position: absolute; |
6 width: 20px; | 6 width: 20px; |
7 height: 20px; | 7 height: 20px; |
8 transform: translateZ(10px); | 8 transform: translateZ(10px); |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 function test() | 25 function test() |
26 { | 26 { |
27 InspectorTest.invokeWithTracing("doActions", onTracingComplete); | 27 InspectorTest.invokeWithTracing("doActions", onTracingComplete); |
28 function onTracingComplete() | 28 function onTracingComplete() |
29 { | 29 { |
30 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); | 30 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); |
31 for (var i = 0; i < events.length; ++i) { | 31 for (var i = 0; i < events.length; ++i) { |
32 var event = events[i]; | 32 var event = events[i]; |
33 if (events[i].name === WebInspector.TracingTimelineModel.RecordType.
UpdateLayerTree) { | 33 if (events[i].name === WebInspector.TimelineModel.RecordType.UpdateL
ayerTree) { |
34 InspectorTest.addResult("Got UpdateLayerTree event"); | 34 InspectorTest.addResult("Got UpdateLayerTree event"); |
35 break; | 35 break; |
36 } | 36 } |
37 } | 37 } |
38 InspectorTest.addResult("Done"); | 38 InspectorTest.addResult("Done"); |
39 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 | 45 |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p> | 47 <p> |
48 Tests the instrumentation of UpdateLayerTree event | 48 Tests the instrumentation of UpdateLayerTree event |
49 </p> | 49 </p> |
50 <div id="parent-layer"></div> | 50 <div id="parent-layer"></div> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |