Index: LayoutTests/inspector/profiler/profiler-test.js |
diff --git a/LayoutTests/inspector/profiler/profiler-test.js b/LayoutTests/inspector/profiler/profiler-test.js |
index 35567fb2b5a359b4cf77859ca0aaae0d5dc876cd..2a3c114124a60487a86a1da009228ab8d38fc3cf 100644 |
--- a/LayoutTests/inspector/profiler/profiler-test.js |
+++ b/LayoutTests/inspector/profiler/profiler-test.js |
@@ -53,7 +53,7 @@ InspectorTest.waitUntilProfileViewIsShown = function(title, callback) |
callback = InspectorTest.safeWrap(callback); |
var profilesPanel = WebInspector.panels.profiles; |
- if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView.profile.title === title) |
+ if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView._profileHeader.title === title) |
callback(profilesPanel.visibleView); |
else |
InspectorTest._waitUntilProfileViewIsShownCallback = { title: title, callback: callback }; |
@@ -62,7 +62,7 @@ InspectorTest.waitUntilProfileViewIsShown = function(title, callback) |
InspectorTest._profileViewRefresh = function() |
{ |
// Called in the context of ProfileView. |
- if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._waitUntilProfileViewIsShownCallback.title === this.profile.title) { |
+ if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._waitUntilProfileViewIsShownCallback.title === this._profileHeader.title) { |
var callback = InspectorTest._waitUntilProfileViewIsShownCallback; |
delete InspectorTest._waitUntilProfileViewIsShownCallback; |
callback.callback(this); |