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

Side by Side Diff: LayoutTests/inspector/profiler/profiler-test.js

Issue 335403003: DevTools: disable debugger when a profiler is active. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/common/Settings.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_ProfilerTest = function() { 1 var initialize_ProfilerTest = function() {
2 2
3 InspectorTest.startProfilerTest = function(callback) 3 InspectorTest.startProfilerTest = function(callback)
4 { 4 {
5 WebInspector.experimentsSettings.disableAgentsWhenProfile.enableForTest();
5 WebInspector.inspectorView.showPanel("profiles"); 6 WebInspector.inspectorView.showPanel("profiles");
6 7
7 InspectorTest.addResult("Profiler was enabled."); 8 InspectorTest.addResult("Profiler was enabled.");
8 InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader", InspectorTest._profileHeaderAdded, true); 9 InspectorTest.addSniffer(WebInspector.panels.profiles, "_addProfileHeader", InspectorTest._profileHeaderAdded, true);
9 InspectorTest.addSniffer(WebInspector.CPUProfileView.prototype, "refresh", I nspectorTest._profileViewRefresh, true); 10 InspectorTest.addSniffer(WebInspector.CPUProfileView.prototype, "refresh", I nspectorTest._profileViewRefresh, true);
10 InspectorTest.safeWrap(callback)(); 11 InspectorTest.safeWrap(callback)();
11 }; 12 };
12 13
13 InspectorTest.completeProfilerTest = function() 14 InspectorTest.completeProfilerTest = function()
14 { 15 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 { 64 {
64 // Called in the context of ProfileView. 65 // Called in the context of ProfileView.
65 if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._wai tUntilProfileViewIsShownCallback.title === this._profileHeader.title) { 66 if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._wai tUntilProfileViewIsShownCallback.title === this._profileHeader.title) {
66 var callback = InspectorTest._waitUntilProfileViewIsShownCallback; 67 var callback = InspectorTest._waitUntilProfileViewIsShownCallback;
67 delete InspectorTest._waitUntilProfileViewIsShownCallback; 68 delete InspectorTest._waitUntilProfileViewIsShownCallback;
68 callback.callback(this); 69 callback.callback(this);
69 } 70 }
70 }; 71 };
71 72
72 }; 73 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/common/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698