OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
5 <script src="../../http/tests/inspector/timeline-test.js"></script> | 5 <script src="../../http/tests/inspector/timeline-test.js"></script> |
6 <script src="resources/timeline-data.js"></script> | 6 <script src="resources/timeline-data.js"></script> |
7 <script> | 7 <script> |
8 | 8 |
9 function test() | 9 function test() |
10 { | 10 { |
11 var timelineData = InspectorTest.timelineData(); | 11 var timelineData = InspectorTest.timelineData(); |
12 | 12 |
13 var timeline = WebInspector.panels.timeline; | 13 var timeline = WebInspector.panels.timeline; |
14 timeline._overviewModeSetting.set(WebInspector.TimelinePanel.OverviewMode.Fr
ames); | |
15 timeline._flameChartEnabledSetting.set(true); | 14 timeline._flameChartEnabledSetting.set(true); |
16 timeline._onModeChanged(); | 15 timeline._onModeChanged(); |
17 timeline._currentViews[0]._automaticallySizeWindow = true; | 16 timeline._currentViews[0]._automaticallySizeWindow = true; |
18 | 17 |
19 function requestWindowTimesHook(startTime, endTime) | 18 function requestWindowTimesHook(startTime, endTime) |
20 { | 19 { |
21 if (startTime) | 20 if (startTime) |
22 InspectorTest.addResult("time delta: " + (endTime - startTime)); | 21 InspectorTest.addResult("time delta: " + (endTime - startTime)); |
23 } | 22 } |
24 | 23 |
(...skipping 14 matching lines...) Expand all Loading... |
39 </script> | 38 </script> |
40 </head> | 39 </head> |
41 | 40 |
42 <body onload="runTest()"> | 41 <body onload="runTest()"> |
43 <p> | 42 <p> |
44 Tests the TimelineFlameChart automatically sized window. | 43 Tests the TimelineFlameChart automatically sized window. |
45 </p> | 44 </p> |
46 | 45 |
47 </body> | 46 </body> |
48 </html> | 47 </html> |
OLD | NEW |