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 16 matching lines...) Expand all Loading... |
27 identifier: "formatAsTypeName", | 27 identifier: "formatAsTypeName", |
28 clip: "formatAsTypeName", | 28 clip: "formatAsTypeName", |
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.InvalidationFormatters = { |
| 38 _tracingEvent: "skip", |
| 39 cause: "formatAsInvalidationCause", |
| 40 frame: "skip", |
| 41 invalidatedSelectorId: "skip", |
| 42 invalidationList: "skip", |
| 43 invalidationSet: "skip", |
| 44 linkedRecalcStyleEvent: "skip", |
| 45 linkedLayoutEvent: "skip", |
| 46 nodeId: "skip", |
| 47 paintId: "skip", |
| 48 startTime: "skip", |
| 49 }; |
| 50 |
| 51 InspectorTest.formatters.formatAsInvalidationCause = function(cause) |
| 52 { |
| 53 if (!cause) |
| 54 return "<undefined>"; |
| 55 var stackTrace; |
| 56 if (cause.stackTrace && cause.stackTrace.length) |
| 57 stackTrace = InspectorTest.formatters.formatAsURL(cause.stackTrace[0].ur
l) + ":" + cause.stackTrace[0].lineNumber; |
| 58 return "{reason: " + cause.reason + ", stackTrace: " + stackTrace + "}"; |
| 59 } |
| 60 |
37 InspectorTest.switchTimelineToWaterfallMode = function() | 61 InspectorTest.switchTimelineToWaterfallMode = function() |
38 { | 62 { |
39 if (WebInspector.panels.timeline._flameChartToggleButton.toggled()) | 63 if (WebInspector.panels.timeline._flameChartToggleButton.toggled()) |
40 WebInspector.panels.timeline._flameChartToggleButton.element.click(); | 64 WebInspector.panels.timeline._flameChartToggleButton.element.click(); |
41 } | 65 } |
42 | 66 |
43 InspectorTest.timelinePresentationModel = function() | 67 InspectorTest.timelinePresentationModel = function() |
44 { | 68 { |
45 InspectorTest.switchTimelineToWaterfallMode(); | 69 InspectorTest.switchTimelineToWaterfallMode(); |
46 return WebInspector.panels.timeline._currentViews[0]._presentationModel; | 70 return WebInspector.panels.timeline._currentViews[0]._presentationModel; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 return this._fileSize; | 386 return this._fileSize; |
363 }, | 387 }, |
364 | 388 |
365 fileName: function() | 389 fileName: function() |
366 { | 390 { |
367 return "fakeFile"; | 391 return "fakeFile"; |
368 } | 392 } |
369 }; | 393 }; |
370 | 394 |
371 }; | 395 }; |
OLD | NEW |