| 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 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 function test() | 23 function test() |
| 24 { | 24 { |
| 25 InspectorTest.invokeWithTracing("doActions", onTracingComplete); | 25 InspectorTest.invokeWithTracing("doActions", onTracingComplete); |
| 26 function onTracingComplete() | 26 function onTracingComplete() |
| 27 { | 27 { |
| 28 var events = InspectorTest.timelineModel().inspectedTargetEvents(); | 28 var events = InspectorTest.timelineModel().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 (events[i].name === WebInspector.TimelineModel.RecordType.UpdateL
ayerTree) { | 31 if (events[i].name === TimelineModel.TimelineModel.RecordType.Update
LayerTree) { |
| 32 InspectorTest.addResult("Got UpdateLayerTree event, phase: " + e
vents[i].phase); | 32 InspectorTest.addResult("Got UpdateLayerTree event, phase: " + e
vents[i].phase); |
| 33 break; | 33 break; |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 InspectorTest.addResult("Done"); | 36 InspectorTest.addResult("Done"); |
| 37 InspectorTest.completeTest(); | 37 InspectorTest.completeTest(); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 </script> | 41 </script> |
| 42 </head> | 42 </head> |
| 43 | 43 |
| 44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
| 45 <p> | 45 <p> |
| 46 Tests the instrumentation of UpdateLayerTree event | 46 Tests the instrumentation of UpdateLayerTree event |
| 47 </p> | 47 </p> |
| 48 <div id="parent-layer"></div> | 48 <div id="parent-layer"></div> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |