| 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
|
|
|