InspectorTest.timelinePresentationModel = function()
{
- return WebInspector.panels.timeline._currentView._presentationModel;
+ return WebInspector.panels.timeline._currentViews[0]._presentationModel;
}
InspectorTest.startTimeline = function(callback)
InspectorTest.loadTimelineRecords = function(records)
{
var model = WebInspector.showPanel("timeline")._model;
+ model.reset();
records.forEach(model._addRecord, model);
}
result = record;
return true;
}
- var records = WebInspector.panel("timeline")._currentView._rootRecord().children;
+ var records = WebInspector.panel("timeline")._currentViews[0]._rootRecord().children;
WebInspector.TimelinePresentationModel.forAllRecords(records, findByType);
return result;
}