OLD | NEW |
1 var initialize_Timeline = function() { | 1 var initialize_Timeline = function() { |
2 | 2 |
3 InspectorTest.preloadPanel("timeline"); | 3 InspectorTest.preloadPanel("timeline"); |
4 | 4 |
5 // Scrub values when printing out these properties in the record or data field. | 5 // Scrub values when printing out these properties in the record or data field. |
6 InspectorTest.timelinePropertyFormatters = { | 6 InspectorTest.timelinePropertyFormatters = { |
7 children: "formatAsTypeName", | 7 children: "formatAsTypeName", |
8 endTime: "formatAsTypeName", | 8 endTime: "formatAsTypeName", |
9 requestId: "formatAsTypeName", | 9 requestId: "formatAsTypeName", |
10 startTime: "formatAsTypeName", | 10 startTime: "formatAsTypeName", |
(...skipping 17 matching lines...) Expand all Loading... |
28 root: "formatAsTypeName", | 28 root: "formatAsTypeName", |
29 backendNodeId: "formatAsTypeName", | 29 backendNodeId: "formatAsTypeName", |
30 nodeId: "formatAsTypeName", | 30 nodeId: "formatAsTypeName", |
31 rootNode: "formatAsTypeName", | 31 rootNode: "formatAsTypeName", |
32 networkTime: "formatAsTypeName", | 32 networkTime: "formatAsTypeName", |
33 thread: "formatAsTypeName" | 33 thread: "formatAsTypeName" |
34 }; | 34 }; |
35 | 35 |
36 InspectorTest.switchTimelineToWaterfallMode = function() | 36 InspectorTest.switchTimelineToWaterfallMode = function() |
37 { | 37 { |
38 if (!Runtime.experiments.isEnabled("timelineOnTraceEvents")) | |
39 return; | |
40 if (WebInspector.panels.timeline._flameChartToggleButton.toggled) | 38 if (WebInspector.panels.timeline._flameChartToggleButton.toggled) |
41 WebInspector.panels.timeline._flameChartToggleButton.element.click(); | 39 WebInspector.panels.timeline._flameChartToggleButton.element.click(); |
42 } | 40 } |
43 | 41 |
44 InspectorTest.timelinePresentationModel = function() | 42 InspectorTest.timelinePresentationModel = function() |
45 { | 43 { |
46 InspectorTest.switchTimelineToWaterfallMode(); | 44 InspectorTest.switchTimelineToWaterfallMode(); |
47 return WebInspector.panels.timeline._currentViews[0]._presentationModel; | 45 return WebInspector.panels.timeline._currentViews[0]._presentationModel; |
48 } | 46 } |
49 | 47 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 return this._fileSize; | 366 return this._fileSize; |
369 }, | 367 }, |
370 | 368 |
371 fileName: function() | 369 fileName: function() |
372 { | 370 { |
373 return "fakeFile"; | 371 return "fakeFile"; |
374 } | 372 } |
375 }; | 373 }; |
376 | 374 |
377 }; | 375 }; |
OLD | NEW |