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.inspectorView.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._overviewModeSetting.set("Frames");
26 timeline._onModeChanged();
27 timeline._model.reset();
28 console.log("Expected count of barTimes is zero: " + timeline._overviewControls[0]._barTimes.length);
30 InspectorTest.completeTest();
36 <body onload="runTest()">
38 Test that check RecordsCleared event in TimelineFramesOverview.
42 We expect that TFO paints nothing after RecordsCleared event.
43 The check point is the length of _barTimes array.