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

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

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 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()

Powered by Google App Engine
This is Rietveld 408576698