Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script src="resources/timeline-data.js"></script> 5 <script src="resources/timeline-data.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 WebInspector.inspectorView.showPanel("network"); 10 WebInspector.inspectorView.showPanel("network");
11 WebInspector.experimentsSettings.timelineOnTraceEvents.enableForTest();
12 var timelineData = InspectorTest.timelineData(); 11 var timelineData = InspectorTest.timelineData();
13 12
14 var timeline = WebInspector.inspectorView.showPanel("timeline"); 13 var timeline = WebInspector.inspectorView.showPanel("timeline");
15 timeline._overviewModeSetting.set(WebInspector.TimelinePanel.OverviewMode.Fr ames); 14 timeline._overviewModeSetting.set(WebInspector.TimelinePanel.OverviewMode.Fr ames);
16 timeline._flameChartEnabledSetting.set(true); 15 timeline._flameChartEnabledSetting.set(true);
17 timeline._onModeChanged(); 16 timeline._onModeChanged();
18 timeline._currentViews[0]._automaticallySizeWindow = true; 17 timeline._currentViews[0]._automaticallySizeWindow = true;
19 18
20 function requestWindowTimesHook(startTime, endTime) 19 function requestWindowTimesHook(startTime, endTime)
21 { 20 {
(...skipping 18 matching lines...) Expand all
40 </script> 39 </script>
41 </head> 40 </head>
42 41
43 <body onload="runTest()"> 42 <body onload="runTest()">
44 <p> 43 <p>
45 Tests the TimelineFlameChart automatically sized window. 44 Tests the TimelineFlameChart automatically sized window.
46 </p> 45 </p>
47 46
48 </body> 47 </body>
49 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698