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