Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html

Issue 461323003: DevTools: Make Timeline tests use only model records (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
diff --git a/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html b/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
index a7137467253587304f5e560701f014a414734538..82ee9c3c8557a05dc3d6072ea7f585ed49456d8c 100644
--- a/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
+++ b/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
@@ -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.mainTarget());
- layerTree.setLayers(record.data["layerTree"], onLayersSet.bind(null, layerTree));
+ layerTree.setLayers(record.data()["layerTree"], onLayersSet.bind(null, layerTree));
}
function onLayersSet(layerTree)

Powered by Google App Engine
This is Rietveld 408576698