| Index: LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| diff --git a/LayoutTests/inspector/profiler/heap-snapshot-test.js b/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| index 6934be6ca2de02afd35f34f880c90fa3afd20c87..164bb201443b5495567b55f7d794c5135c27b5f7 100644
|
| --- a/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| +++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| @@ -694,13 +694,13 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
|
| maxJSObjectId: snapshot.maxJSObjectId
|
| });
|
| delete snapshot.maxJSObjectId;
|
| - function pushGeneratedSnapshot(uid)
|
| + function pushGeneratedSnapshot(uid, callback)
|
| {
|
| snapshot.snapshot.typeId = "HEAP";
|
| snapshot.snapshot.title = profile.title;
|
| snapshot.snapshot.uid = profile.uid;
|
| profileType.addHeapSnapshotChunk(uid, JSON.stringify(snapshot));
|
| - profileType.finishHeapSnapshot(uid);
|
| + callback();
|
| }
|
| InspectorTest.override(HeapProfilerAgent, "getHeapSnapshot", pushGeneratedSnapshot);
|
| InspectorTest._takeAndOpenSnapshotCallback = callback;
|
|
|