| OLD | NEW |
| (Empty) |
| 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> | |
| 8 | |
| 9 function test() | |
| 10 { | |
| 11 var timeline = WebInspector.panels.timeline; | |
| 12 timeline._onModeChanged(); | |
| 13 timeline._currentViews[0]._automaticallySizeWindow = true; | |
| 14 | |
| 15 function requestWindowTimesHook(startTime, endTime) | |
| 16 { | |
| 17 if (startTime) | |
| 18 InspectorTest.addResult("time delta: " + (endTime - startTime)); | |
| 19 } | |
| 20 | |
| 21 timeline.requestWindowTimes = requestWindowTimesHook; | |
| 22 InspectorTest.loadTimeline(InspectorTest.timelineData()); | |
| 23 | |
| 24 InspectorTest.completeTest(); | |
| 25 } | |
| 26 | |
| 27 </script> | |
| 28 </head> | |
| 29 | |
| 30 <body onload="runTest()"> | |
| 31 <p> | |
| 32 Tests the TimelineFlameChart automatically sized window. | |
| 33 </p> | |
| 34 | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |