Chromium Code Reviews| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 | 73 |
| 74 InspectorTest.startTimeline = function(callback) | 74 InspectorTest.startTimeline = function(callback) |
| 75 { | 75 { |
| 76 var panel = WebInspector.panels.timeline; | 76 var panel = WebInspector.panels.timeline; |
| 77 function onRecordingStarted() | 77 function onRecordingStarted() |
| 78 { | 78 { |
| 79 panel._model.removeEventListener(WebInspector.TimelineModel.Events.Recor dingStarted, onRecordingStarted, this) | 79 panel._model.removeEventListener(WebInspector.TimelineModel.Events.Recor dingStarted, onRecordingStarted, this) |
| 80 callback(); | 80 callback(); |
| 81 } | 81 } |
| 82 panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingSta rted, onRecordingStarted, this) | 82 panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingSta rted, onRecordingStarted, this) |
| 83 panel._captureJSProfileSetting.set(false); | 83 panel._captureJSProfileSetting.set(true); |
|
caseq
2016/01/25 19:18:36
Hm... Looks like we can't do this before we fix "c
alph
2016/01/26 00:58:49
The patch addresses this issue as well.
| |
| 84 panel._toggleRecording(); | 84 panel._toggleRecording(); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 InspectorTest.stopTimeline = function(callback) | 87 InspectorTest.stopTimeline = function(callback) |
| 88 { | 88 { |
| 89 var panel = WebInspector.panels.timeline; | 89 var panel = WebInspector.panels.timeline; |
| 90 function didStop() | 90 function didStop() |
| 91 { | 91 { |
| 92 panel._model.removeEventListener(WebInspector.TimelineModel.Events.Recor dingStopped, didStop, this) | 92 panel._model.removeEventListener(WebInspector.TimelineModel.Events.Recor dingStopped, didStop, this) |
| 93 InspectorTest.runAfterPendingDispatches(callback); | 93 InspectorTest.runAfterPendingDispatches(callback); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 if (!--count) { | 399 if (!--count) { |
| 400 callback(); | 400 callback(); |
| 401 return; | 401 return; |
| 402 } | 402 } |
| 403 if (window.testRunner) | 403 if (window.testRunner) |
| 404 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window, makeFrame)); | 404 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window, makeFrame)); |
| 405 else | 405 else |
| 406 window.requestAnimationFrame(makeFrame); | 406 window.requestAnimationFrame(makeFrame); |
| 407 } | 407 } |
| 408 } | 408 } |
| OLD | NEW |