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

Unified Diff: LayoutTests/inspector/profiler/profiler-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/profiler-test.js
diff --git a/LayoutTests/inspector/profiler/profiler-test.js b/LayoutTests/inspector/profiler/profiler-test.js
index 2a3c114124a60487a86a1da009228ab8d38fc3cf..85746dc41a45d88d244c428b21ae0fb26f52687c 100644
--- a/LayoutTests/inspector/profiler/profiler-test.js
+++ b/LayoutTests/inspector/profiler/profiler-test.js
@@ -5,7 +5,7 @@ InspectorTest.startProfilerTest = function(callback)
WebInspector.inspectorView.showPanel("profiles");
InspectorTest.addResult("Profiler was enabled.");
- InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader", InspectorTest._profileHeaderAdded, true);
+ InspectorTest.addSniffer(WebInspector.inspectorView.panel("profiles"), "_addProfileHeader", InspectorTest._profileHeaderAdded, true);
InspectorTest.addSniffer(WebInspector.CPUProfileView.prototype, "refresh", InspectorTest._profileViewRefresh, true);
InspectorTest.safeWrap(callback)();
};
@@ -45,14 +45,14 @@ InspectorTest.showProfileWhenAdded = function(title)
InspectorTest._profileHeaderAdded = function(profile)
{
if (InspectorTest._showProfileWhenAdded === profile.title)
- WebInspector.panels.profiles.showProfile(profile);
+ WebInspector.inspectorView.panel("profiles").showProfile(profile);
};
InspectorTest.waitUntilProfileViewIsShown = function(title, callback)
{
callback = InspectorTest.safeWrap(callback);
- var profilesPanel = WebInspector.panels.profiles;
+ var profilesPanel = WebInspector.inspectorView.panel("profiles");
if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView._profileHeader.title === title)
callback(profilesPanel.visibleView);
else

Powered by Google App Engine
This is Rietveld 408576698