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

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

Issue 235453008: DevTools: Extract CPU profile model out of CPUProfileView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 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);
« no previous file with comments | « LayoutTests/inspector/profiler/cpu-profiler-save-load.html ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698