| 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 23 matching lines...) Expand all Loading... |
| 34 encodedDataLength: "formatAsTypeName", | 34 encodedDataLength: "formatAsTypeName", |
| 35 identifier: "formatAsTypeName", | 35 identifier: "formatAsTypeName", |
| 36 clip: "formatAsTypeName", | 36 clip: "formatAsTypeName", |
| 37 root: "formatAsTypeName", | 37 root: "formatAsTypeName", |
| 38 backendNodeId: "formatAsTypeName", | 38 backendNodeId: "formatAsTypeName", |
| 39 nodeId: "formatAsTypeName", | 39 nodeId: "formatAsTypeName", |
| 40 rootNode: "formatAsTypeName", | 40 rootNode: "formatAsTypeName", |
| 41 finishTime: "formatAsTypeName", | 41 finishTime: "formatAsTypeName", |
| 42 thread: "formatAsTypeName", | 42 thread: "formatAsTypeName", |
| 43 allottedMilliseconds: "formatAsTypeName", | 43 allottedMilliseconds: "formatAsTypeName", |
| 44 timedOut: "formatAsTypeName" | 44 timedOut: "formatAsTypeName", |
| 45 networkTime: "formatAsTypeName", |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 InspectorTest.InvalidationFormatters = { | 48 InspectorTest.InvalidationFormatters = { |
| 48 _tracingEvent: "skip", | 49 _tracingEvent: "skip", |
| 49 cause: "formatAsInvalidationCause", | 50 cause: "formatAsInvalidationCause", |
| 50 frame: "skip", | 51 frame: "skip", |
| 51 invalidatedSelectorId: "skip", | 52 invalidatedSelectorId: "skip", |
| 52 invalidationList: "skip", | 53 invalidationList: "skip", |
| 53 invalidationSet: "skip", | 54 invalidationSet: "skip", |
| 54 linkedRecalcStyleEvent: "skip", | 55 linkedRecalcStyleEvent: "skip", |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 function waitForFrame() | 442 function waitForFrame() |
| 442 { | 443 { |
| 443 var callback; | 444 var callback; |
| 444 var promise = new Promise((fulfill) => callback = fulfill); | 445 var promise = new Promise((fulfill) => callback = fulfill); |
| 445 if (window.testRunner) | 446 if (window.testRunner) |
| 446 testRunner.capturePixelsAsyncThen(() => window.requestAnimationFrame(cal
lback)); | 447 testRunner.capturePixelsAsyncThen(() => window.requestAnimationFrame(cal
lback)); |
| 447 else | 448 else |
| 448 window.requestAnimationFrame(callback); | 449 window.requestAnimationFrame(callback); |
| 449 return promise; | 450 return promise; |
| 450 } | 451 } |
| OLD | NEW |