Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / timeline / timeline-layer-tree-snapshot.html
index e4ade80..82ee9c3 100644 (file)
@@ -48,14 +48,14 @@ function test()
     var pendingEventCount = 0;
     function loadSnapshot(record)
     {
-        if (record.type !== WebInspector.TimelineModel.RecordType.UpdateLayerTree)
+        if (record.type() !== WebInspector.TimelineModel.RecordType.UpdateLayerTree)
             return;
         // Some updates may not produce new layer tree snapshot
-        if (!record.data["layerTree"])
+        if (!record.data()["layerTree"])
             return;
         ++pendingEventCount;
-        var layerTree = new WebInspector.AgentLayerTree(WebInspector.targetManager.activeTarget());
-        layerTree.setLayers(record.data["layerTree"], onLayersSet.bind(null, layerTree));
+        var layerTree = new WebInspector.AgentLayerTree(WebInspector.targetManager.mainTarget());
+        layerTree.setLayers(record.data()["layerTree"], onLayersSet.bind(null, layerTree));
     }
 
     function onLayersSet(layerTree)