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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-loader.html

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-loader.html
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-loader.html b/LayoutTests/inspector/profiler/heap-snapshot-loader.html
index efd5b4ec1bc0a054aee7461668b067f0a249405f..336307a41ce5aaaeed1d45e6312dabcb12c18a7d 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot-loader.html
+++ b/LayoutTests/inspector/profiler/heap-snapshot-loader.html
@@ -33,10 +33,10 @@ function test()
}
InspectorTest.override(HeapProfilerAgent, "getHeapSnapshot", getHeapSnapshotMock);
- function getHeapSnapshotMock(uid) {
+ function getHeapSnapshotMock(uid, callback) {
for (var i = 0, l = sourceStringified.length; i < l; i += partSize)
dispatcher.addHeapSnapshotChunk(uid, sourceStringified.slice(i, i + partSize));
- dispatcher.finishHeapSnapshot(uid);
+ callback();
}
dispatcher.addProfileHeader({

Powered by Google App Engine
This is Rietveld 408576698