| OLD | NEW |
| 1 function initialize_TracingTest() | 1 function initialize_TracingTest() |
| 2 { | 2 { |
| 3 | 3 |
| 4 // FIXME: remove when tracing is out of experimental | 4 // FIXME: remove when tracing is out of experimental |
| 5 WebInspector.inspectorView.showPanel("timeline"); | 5 WebInspector.inspectorView.showPanel("timeline"); |
| 6 InspectorTest.tracingModel = new WebInspector.TracingModel(); | 6 InspectorTest.tracingModel = new WebInspector.TracingModel(); |
| 7 | 7 |
| 8 InspectorTest.invokeWithTracing = function(categoryFilter, functionName, callbac
k) | 8 InspectorTest.invokeWithTracing = function(categoryFilter, functionName, callbac
k) |
| 9 { | 9 { |
| 10 InspectorTest.tracingModel.start(categoryFilter, "", onTracingStarted); | 10 InspectorTest.tracingModel.start(categoryFilter, "", onTracingStarted); |
| 11 | 11 |
| 12 function onTracingStarted(error) | 12 function onTracingStarted(error) |
| 13 { | 13 { |
| 14 InspectorTest.invokePageFunctionAsync(functionName, onPageActionsDone) | 14 InspectorTest.invokePageFunctionAsync(functionName, onPageActionsDone); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function onPageActionsDone() | 17 function onPageActionsDone() |
| 18 { | 18 { |
| 19 InspectorTest.tracingModel.stop(callback); | 19 InspectorTest.tracingModel.stop(InspectorTest.safeWrap(callback)); |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 } | 23 } |
| OLD | NEW |