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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html

Issue 147923011: Remove unnecessary _profileTypesByIdMap map (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 11 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-inspect-dom-wrapper.html
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html b/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html
index a1b9c82e873cd6955db99066eb2c8f84dcb416e5..1043480e52d2f81476786c6175c201ff91569f06 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html
+++ b/LayoutTests/inspector/profiler/heap-snapshot-inspect-dom-wrapper.html
@@ -14,7 +14,7 @@ function handleLoad()
function test()
{
WebInspector.showPanel("profiles");
- var heapProfileType = WebInspector.panels.profiles.getProfileType("HEAP");
+ var heapProfileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotProfileType;
heapProfileType.addEventListener(WebInspector.HeapSnapshotProfileType.SnapshotReceived, finishHeapSnapshot);
InspectorTest.addSniffer(heapProfileType, "_snapshotReceived", snapshotReceived);
heapProfileType._takeHeapSnapshot(function() {});
@@ -31,7 +31,7 @@ function test()
return clear("FAILED: wrong number of recorded profiles was found. profiles.length = " + profiles.length);
var profile = profiles[profiles.length - 1];
- WebInspector.panels.profiles._showProfile(profile);
+ WebInspector.panels.profiles.showProfile(profile);
}
function snapshotReceived(profile)
« no previous file with comments | « LayoutTests/inspector/profiler/cpu-profiler-save-load.html ('k') | LayoutTests/inspector/profiler/heap-snapshot-loader.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698