Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / timeline-test.js
index b5b8820..0631bb8 100644 (file)
@@ -31,7 +31,7 @@ InspectorTest.timelinePropertyFormatters = {
 
 InspectorTest.timelinePresentationModel = function()
 {
-    return WebInspector.panels.timeline._currentView._presentationModel;
+    return WebInspector.panels.timeline._currentViews[0]._presentationModel;
 }
 
 InspectorTest.startTimeline = function(callback)
@@ -103,6 +103,7 @@ InspectorTest.evaluateWithTimeline = function(actions, doneCallback)
 InspectorTest.loadTimelineRecords = function(records)
 {
     var model = WebInspector.showPanel("timeline")._model;
+    model.reset();
     records.forEach(model._addRecord, model);
 }
 
@@ -199,7 +200,7 @@ InspectorTest.findPresentationRecord = function(type)
         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;
 }