Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / timeline-flame-chart-automatically-size-window.html
blobc087883cb584037b2f58746fde0480c42f02a48f
1 <html>
2 <head>
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>
7 <script>
9 function test()
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)
20 if (startTime)
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();
38 </script>
39 </head>
41 <body onload="runTest()">
42 <p>
43 Tests the TimelineFlameChart automatically sized window.
44 </p>
46 </body>
47 </html>