Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-test.js

Issue 27000005: Remove HeapProfiler.finishHeapSnapshot event from remote debugging protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed heap profiler test Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-loader.html ('k') | Source/core/inspector/InspectorHeapProfilerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698