| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 paintId: "skip", | 57 paintId: "skip", |
| 58 startTime: "skip", | 58 startTime: "skip", |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 InspectorTest.formatters.formatAsInvalidationCause = function(cause) | 61 InspectorTest.formatters.formatAsInvalidationCause = function(cause) |
| 62 { | 62 { |
| 63 if (!cause) | 63 if (!cause) |
| 64 return "<undefined>"; | 64 return "<undefined>"; |
| 65 var stackTrace; | 65 var stackTrace; |
| 66 if (cause.stackTrace && cause.stackTrace.length) | 66 if (cause.stackTrace && cause.stackTrace.length) |
| 67 stackTrace = InspectorTest.formatters.formatAsURL(cause.stackTrace[0].ur
l) + ":" + cause.stackTrace[0].lineNumber; | 67 stackTrace = InspectorTest.formatters.formatAsURL(cause.stackTrace[0].ur
l) + ":" + (cause.stackTrace[0].lineNumber + 1); |
| 68 return "{reason: " + cause.reason + ", stackTrace: " + stackTrace + "}"; | 68 return "{reason: " + cause.reason + ", stackTrace: " + stackTrace + "}"; |
| 69 } | 69 } |
| 70 | 70 |
| 71 InspectorTest.preloadPanel("timeline"); | 71 InspectorTest.preloadPanel("timeline"); |
| 72 WebInspector.TempFile = InspectorTest.TempFileMock; | 72 WebInspector.TempFile = InspectorTest.TempFileMock; |
| 73 | 73 |
| 74 InspectorTest.createTracingModel = function() | 74 InspectorTest.createTracingModel = function() |
| 75 { | 75 { |
| 76 return new WebInspector.TracingModel(new WebInspector.TempFileBackingStorage
("tracing")); | 76 return new WebInspector.TracingModel(new WebInspector.TempFileBackingStorage
("tracing")); |
| 77 } | 77 } |
| (...skipping 392 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 |