| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) | 97 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) |
| 98 { | 98 { |
| 99 InspectorTest.startTimeline(step1); | 99 InspectorTest.startTimeline(step1); |
| 100 function step1() | 100 function step1() |
| 101 { | 101 { |
| 102 InspectorTest.invokePageFunctionAsync(functionName, step2); | 102 InspectorTest.invokePageFunctionAsync(functionName, step2); |
| 103 } | 103 } |
| 104 | 104 |
| 105 function step2() | 105 function step2() |
| 106 { | 106 { |
| 107 InspectorTest.stopTimeline(doneCallback); | 107 InspectorTest.stopTimeline(InspectorTest.safeWrap(doneCallback)); |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | 110 |
| 111 InspectorTest.loadTimelineRecords = function(records) | 111 InspectorTest.loadTimelineRecords = function(records) |
| 112 { | 112 { |
| 113 var model = WebInspector.panels.timeline._model; | 113 var model = WebInspector.panels.timeline._model; |
| 114 model.reset(); | 114 model.reset(); |
| 115 records.forEach(model._addRecord, model); | 115 records.forEach(model._addRecord, model); |
| 116 } | 116 } |
| 117 | 117 |
| (...skipping 244 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 |