Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / profiler / profiler-test.js
index 35567fb..2a3c114 100644 (file)
@@ -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);