| OLD | NEW |
| 1 function initialize_TracingTest() | 1 function initialize_TracingTest() |
| 2 { | 2 { |
| 3 | 3 |
| 4 InspectorTest.preloadPanel("timeline"); | 4 InspectorTest.preloadPanel("timeline"); |
| 5 WebInspector.TempFile = InspectorTest.TempFileMock; |
| 5 | 6 |
| 6 InspectorTest.tracingManager = function() | 7 InspectorTest.tracingManager = function() |
| 7 { | 8 { |
| 8 if (WebInspector.panels.timeline._tracingManager) | 9 if (WebInspector.panels.timeline._tracingManager) |
| 9 return WebInspector.panels.timeline._tracingManager; | 10 return WebInspector.panels.timeline._tracingManager; |
| 10 if (!InspectorTest._tracingManager) | 11 if (!InspectorTest._tracingManager) |
| 11 InspectorTest._tracingManager = new WebInspector.TracingManager(); | 12 InspectorTest._tracingManager = new WebInspector.TracingManager(); |
| 12 return InspectorTest._tracingManager; | 13 return InspectorTest._tracingManager; |
| 13 } | 14 } |
| 14 | 15 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 48 } |
| 48 | 49 |
| 49 function onTracingComplete(event) | 50 function onTracingComplete(event) |
| 50 { | 51 { |
| 51 InspectorTest.tracingTimelineModel().removeEventListener(WebInspector.Ti
melineModel.Events.RecordingStopped, onTracingComplete, this); | 52 InspectorTest.tracingTimelineModel().removeEventListener(WebInspector.Ti
melineModel.Events.RecordingStopped, onTracingComplete, this); |
| 52 callback(); | 53 callback(); |
| 53 } | 54 } |
| 54 } | 55 } |
| 55 | 56 |
| 56 } | 57 } |
| OLD | NEW |