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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/inspector/profiler/profiler-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/profiler-test.js b/third_party/WebKit/LayoutTests/inspector/profiler/profiler-test.js
index 70f8a61c2b2d0a248f6e08fffd6c3cac771325b3..8c97ef24c7315620040aa6a38e0068a4a35a61c0 100644
--- a/third_party/WebKit/LayoutTests/inspector/profiler/profiler-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/profiler/profiler-test.js
@@ -1,13 +1,13 @@
var initialize_ProfilerTest = function() {
InspectorTest.preloadPanel("profiles");
-WebInspector.TempFile = InspectorTest.TempFileMock;
+Bindings.TempFile = InspectorTest.TempFileMock;
InspectorTest.startProfilerTest = function(callback)
{
InspectorTest.addResult("Profiler was enabled.");
- InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader", InspectorTest._profileHeaderAdded, true);
- InspectorTest.addSniffer(WebInspector.ProfileView.prototype, "refresh", InspectorTest._profileViewRefresh, true);
+ InspectorTest.addSniffer(UI.panels.profiles, "_addProfileHeader", InspectorTest._profileHeaderAdded, true);
+ InspectorTest.addSniffer(Profiler.ProfileView.prototype, "refresh", InspectorTest._profileViewRefresh, true);
InspectorTest.safeWrap(callback)();
};
@@ -46,14 +46,14 @@ InspectorTest.showProfileWhenAdded = function(title)
InspectorTest._profileHeaderAdded = function(profile)
{
if (InspectorTest._showProfileWhenAdded === profile.title)
- WebInspector.panels.profiles.showProfile(profile);
+ UI.panels.profiles.showProfile(profile);
};
InspectorTest.waitUntilProfileViewIsShown = function(title, callback)
{
callback = InspectorTest.safeWrap(callback);
- var profilesPanel = WebInspector.panels.profiles;
+ var profilesPanel = UI.panels.profiles;
if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView._profileHeader.title === title)
callback(profilesPanel.visibleView);
else
@@ -72,12 +72,12 @@ InspectorTest._profileViewRefresh = function()
InspectorTest.startSamplingHeapProfiler = function()
{
- WebInspector.SamplingHeapProfileType.instance.startRecordingProfile();
+ Profiler.SamplingHeapProfileType.instance.startRecordingProfile();
}
InspectorTest.stopSamplingHeapProfiler = function()
{
- WebInspector.SamplingHeapProfileType.instance.stopRecordingProfile();
+ Profiler.SamplingHeapProfileType.instance.stopRecordingProfile();
}
};

Powered by Google App Engine
This is Rietveld 408576698