OLD | NEW |
| 1 function wrapCallFunctionForTimeline(f) |
| 2 { |
| 3 var script = document.createElement("script"); |
| 4 script.textContent = "(" + f.toString() + ")()\n//# sourceURL=wrapCallFuncti
onForTimeline.js"; |
| 5 document.body.appendChild(script); |
| 6 } |
| 7 |
1 var initialize_Timeline = function() { | 8 var initialize_Timeline = function() { |
2 | 9 |
3 InspectorTest.preloadPanel("timeline"); | 10 InspectorTest.preloadPanel("timeline"); |
4 WebInspector.TempFile = InspectorTest.TempFileMock; | 11 WebInspector.TempFile = InspectorTest.TempFileMock; |
5 | 12 |
6 // Scrub values when printing out these properties in the record or data field. | 13 // Scrub values when printing out these properties in the record or data field. |
7 InspectorTest.timelinePropertyFormatters = { | 14 InspectorTest.timelinePropertyFormatters = { |
8 children: "formatAsTypeName", | 15 children: "formatAsTypeName", |
9 endTime: "formatAsTypeName", | 16 endTime: "formatAsTypeName", |
10 requestId: "formatAsTypeName", | 17 requestId: "formatAsTypeName", |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 if (!--count) { | 465 if (!--count) { |
459 callback(); | 466 callback(); |
460 return; | 467 return; |
461 } | 468 } |
462 if (window.testRunner) | 469 if (window.testRunner) |
463 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window,
makeFrame)); | 470 testRunner.capturePixelsAsyncThen(requestAnimationFrame.bind(window,
makeFrame)); |
464 else | 471 else |
465 window.requestAnimationFrame(makeFrame); | 472 window.requestAnimationFrame(makeFrame); |
466 } | 473 } |
467 } | 474 } |
OLD | NEW |