3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script src="resources/timeline-data.js"></script>
10 var timelineData = InspectorTest.timelineData();
12 WebInspector.showPanel("timeline");
13 var timeline = WebInspector.panels.timeline;
15 var model = timeline._model;
17 function createFileReader(file, delegate)
19 return new InspectorTest.FakeFileReader(timelineData, delegate, model.saveToFile.bind(model));
22 InspectorTest.override(model, "_createFileReader", createFileReader);
24 model.loadFromFile({}, new WebInspector.Progress());
25 timeline._selectPresentationMode(WebInspector.TimelinePanel.Mode.Frames);
26 timeline._model.reset();
27 console.log("Expected count of barTimes is zero: " + timeline._overviewControl._barTimes.length);
29 InspectorTest.completeTest();
35 <body onload="runTest()">
37 Test that check RecordsCleared event in TimelineFramesOverview.
41 We expect that TFO paints nothing after RecordsCleared event.
42 The check point is the length of _barTimes array.