| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) | 96 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) |
| 97 { | 97 { |
| 98 InspectorTest.startTimeline(step1); | 98 InspectorTest.startTimeline(step1); |
| 99 function step1() | 99 function step1() |
| 100 { | 100 { |
| 101 InspectorTest.invokePageFunctionAsync(functionName, step2); | 101 InspectorTest.invokePageFunctionAsync(functionName, step2); |
| 102 } | 102 } |
| 103 | 103 |
| 104 function step2() | 104 function step2() |
| 105 { | 105 { |
| 106 InspectorTest.stopTimeline(doneCallback); | 106 InspectorTest.stopTimeline(InspectorTest.safeWrap(doneCallback)); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 InspectorTest.loadTimelineRecords = function(records) | 110 InspectorTest.loadTimelineRecords = function(records) |
| 111 { | 111 { |
| 112 var model = WebInspector.panels.timeline._model; | 112 var model = WebInspector.panels.timeline._model; |
| 113 model.reset(); | 113 model.reset(); |
| 114 records.forEach(model._addRecord, model); | 114 records.forEach(model._addRecord, model); |
| 115 } | 115 } |
| 116 | 116 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 return this._fileSize; | 361 return this._fileSize; |
| 362 }, | 362 }, |
| 363 | 363 |
| 364 fileName: function() | 364 fileName: function() |
| 365 { | 365 { |
| 366 return "fakeFile"; | 366 return "fakeFile"; |
| 367 } | 367 } |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 }; | 370 }; |
| OLD | NEW |