3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
5 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
6 <script src=
"resources/timeline-data.js"></script>
11 var timelineData
= InspectorTest
.timelineData();
13 var timeline
= WebInspector
.panels
.timeline
;
14 timeline
._flameChartEnabledSetting
.set(true);
15 timeline
._onModeChanged();
16 timeline
._currentViews
[0]._automaticallySizeWindow
= true;
18 function requestWindowTimesHook(startTime
, endTime
)
21 InspectorTest
.addResult("time delta: " + (endTime
- startTime
));
24 timeline
.requestWindowTimes
= requestWindowTimesHook
;
25 var model
= timeline
._model
;
27 function createFileReader(file
, delegate
)
29 return new InspectorTest
.FakeFileReader(timelineData
, delegate
, timeline
._saveToFile
.bind(timeline
));
32 InspectorTest
.override(model
, "_createFileReader", createFileReader
);
34 model
.loadFromFile({}, new WebInspector
.Progress());
35 InspectorTest
.completeTest();
41 <body onload=
"runTest()">
43 Tests the TimelineFlameChart automatically sized window.