| OLD | NEW |
| 1 function wrapCallFunctionForTimeline(f) | 1 function wrapCallFunctionForTimeline(f) |
| 2 { | 2 { |
| 3 var script = document.createElement("script"); | 3 var script = document.createElement("script"); |
| 4 script.textContent = "(" + f.toString() + ")()\n//# sourceURL=wrapCallFuncti
onForTimeline.js"; | 4 script.textContent = "(" + f.toString() + ")()\n//# sourceURL=wrapCallFuncti
onForTimeline.js"; |
| 5 document.body.appendChild(script); | 5 document.body.appendChild(script); |
| 6 } | 6 } |
| 7 | 7 |
| 8 var initialize_Timeline = function() { | 8 var initialize_Timeline = function() { |
| 9 | 9 |
| 10 InspectorTest.preloadPanel("timeline"); | 10 InspectorTest.preloadPanel("timeline"); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 var panel = WebInspector.panels.timeline; | 141 var panel = WebInspector.panels.timeline; |
| 142 InspectorTest.addSniffer(panel, "recordingStarted", callback); | 142 InspectorTest.addSniffer(panel, "recordingStarted", callback); |
| 143 panel._toggleRecording(); | 143 panel._toggleRecording(); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 InspectorTest.stopTimeline = function(callback) | 146 InspectorTest.stopTimeline = function(callback) |
| 147 { | 147 { |
| 148 var panel = WebInspector.panels.timeline; | 148 var panel = WebInspector.panels.timeline; |
| 149 function didStop() | 149 function didStop() |
| 150 { | 150 { |
| 151 InspectorTest.runAfterPendingDispatches(callback); | 151 InspectorTest.deprecatedRunAfterPendingDispatches(callback); |
| 152 } | 152 } |
| 153 InspectorTest.addSniffer(panel, "loadingComplete", didStop); | 153 InspectorTest.addSniffer(panel, "loadingComplete", didStop); |
| 154 panel._toggleRecording(); | 154 panel._toggleRecording(); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 InspectorTest.evaluateWithTimeline = function(actions, doneCallback) | 157 InspectorTest.evaluateWithTimeline = function(actions, doneCallback) |
| 158 { | 158 { |
| 159 InspectorTest.startTimeline(step1); | 159 InspectorTest.startTimeline(step1); |
| 160 function step1() | 160 function step1() |
| 161 { | 161 { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 if (!--count) { | 470 if (!--count) { |
| 471 callback(); | 471 callback(); |
| 472 return; | 472 return; |
| 473 } | 473 } |
| 474 if (window.testRunner) | 474 if (window.testRunner) |
| 475 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window,
makeFrame)); | 475 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window,
makeFrame)); |
| 476 else | 476 else |
| 477 window.requestAnimationFrame(makeFrame); | 477 window.requestAnimationFrame(makeFrame); |
| 478 } | 478 } |
| 479 } | 479 } |
| OLD | NEW |