| 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 be706084dd285fab2f52749fa9dea53a9c7f74c2..19df47749ae60353f2562747b08ae231c78e716e 100644
|
| --- a/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| +++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| @@ -418,7 +418,7 @@ InspectorTest.startProfilerTest = function(callback)
|
| // We mock out HeapProfilerAgent -- as DRT runs in single-process mode, Inspector
|
| // and test share the same heap. Taking a snapshot takes too long for a test,
|
| // so we provide synthetic snapshots.
|
| - InspectorTest._panelReset = InspectorTest.override(WebInspector.panels.profiles, "_reset", function(){}, true);
|
| + InspectorTest._panelReset = InspectorTest.override(WebInspector.inspectorView.panel("profiles"), "_reset", function(){}, true);
|
| InspectorTest.addSniffer(WebInspector.HeapSnapshotView.prototype, "show", InspectorTest._snapshotViewShown, true);
|
|
|
| // Reduce the number of populated nodes to speed up testing.
|
| @@ -456,7 +456,7 @@ InspectorTest.runHeapSnapshotTestSuite = function(testSuite)
|
| var nextTest = testSuiteTests.shift();
|
| InspectorTest.addResult("");
|
| InspectorTest.addResult("Running: " + /function\s([^(]*)/.exec(nextTest)[1]);
|
| - InspectorTest._panelReset.call(WebInspector.panels.profiles);
|
| + InspectorTest._panelReset.call(WebInspector.inspectorView.panel("profiles"));
|
| InspectorTest.safeWrap(nextTest)(runner, runner);
|
| }
|
|
|
| @@ -675,7 +675,7 @@ InspectorTest.findMatchingRow = function(matcher, parent)
|
| InspectorTest.switchToView = function(title, callback)
|
| {
|
| callback = InspectorTest.safeWrap(callback);
|
| - var view = WebInspector.panels.profiles.visibleView;
|
| + var view = WebInspector.inspectorView.panel("profiles").visibleView;
|
| view._changePerspectiveAndWait(title, callback);
|
| // Increase the grid container height so the viewport don't limit the number of nodes.
|
| InspectorTest._currentGrid().scrollContainer.style.height = "10000px";
|
| @@ -709,7 +709,7 @@ InspectorTest.viewColumns = function()
|
|
|
| InspectorTest.currentProfileView = function()
|
| {
|
| - return WebInspector.panels.profiles.visibleView;
|
| + return WebInspector.inspectorView.panel("profiles").visibleView;
|
| };
|
|
|
| InspectorTest._currentGrid = function()
|
|
|