| Index: third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-loader.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-loader.html b/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-loader.html
|
| index b07f7177fa4409ea851af456b2b00a409f6bc706..3dbc57bdf76c943d208383433613e73049fdce16 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-loader.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-loader.html
|
| @@ -18,14 +18,14 @@ function test()
|
| var profileType = Profiler.ProfileTypeRegistry.instance.heapSnapshotProfileType;
|
|
|
| InspectorTest.override(InspectorTest.HeapProfilerAgent, "takeHeapSnapshot", takeHeapSnapshotMock);
|
| - function takeHeapSnapshotMock(reportProgress, callback) {
|
| + function takeHeapSnapshotMock(reportProgress) {
|
| if (reportProgress) {
|
| profileType._reportHeapSnapshotProgress({data: {done: 50, total: 100, finished: false}});
|
| profileType._reportHeapSnapshotProgress({data: {done: 100, total: 100, finished: true}});
|
| }
|
| for (var i = 0, l = sourceStringified.length; i < l; i += partSize)
|
| dispatcher.addHeapSnapshotChunk(sourceStringified.slice(i, i + partSize));
|
| - return Promise.resolve(callback(null));
|
| + return Promise.resolve();
|
| }
|
|
|
| function tempFileReady()
|
| @@ -33,7 +33,7 @@ function test()
|
| callback(this);
|
| }
|
| InspectorTest.addSniffer(Profiler.HeapProfileHeader.prototype, "_didWriteToTempFile", tempFileReady);
|
| - profileType._takeHeapSnapshot(function() {});
|
| + profileType._takeHeapSnapshot();
|
| }
|
|
|
| Common.console.log = function(message) {
|
|
|