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

Side by Side Diff: LayoutTests/http/tests/inspector/debugger-test.js

Issue 341803002: DevTools: Support properly multiple targets in sources panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comments 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/sdk/DebuggerModel.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_DebuggerTest = function() { 1 var initialize_DebuggerTest = function() {
2 2
3 InspectorTest.startDebuggerTest = function(callback, quiet) 3 InspectorTest.startDebuggerTest = function(callback, quiet)
4 { 4 {
5 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t o be enabled"); 5 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t o be enabled");
6 if (quiet !== undefined) 6 if (quiet !== undefined)
7 InspectorTest._quiet = quiet; 7 InspectorTest._quiet = quiet;
8 WebInspector.inspectorView.showPanel("sources"); 8 WebInspector.inspectorView.showPanel("sources");
9 9
10 InspectorTest.addSniffer(WebInspector.debuggerModel, "_pausedScript", Inspec torTest._pausedScript, true); 10 InspectorTest.addSniffer(WebInspector.debuggerModel, "_pausedScript", Inspec torTest._pausedScript, true);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 callback = InspectorTest.safeWrap(callback); 107 callback = InspectorTest.safeWrap(callback);
108 108
109 if (!InspectorTest._pausedScriptArguments) 109 if (!InspectorTest._pausedScriptArguments)
110 callback(); 110 callback();
111 else 111 else
112 InspectorTest._waitUntilResumedCallback = callback; 112 InspectorTest._waitUntilResumedCallback = callback;
113 }; 113 };
114 114
115 InspectorTest.resumeExecution = function(callback) 115 InspectorTest.resumeExecution = function(callback)
116 { 116 {
117 if (WebInspector.panels.sources.paused) 117 if (WebInspector.panels.sources.paused())
118 WebInspector.panels.sources.togglePause(); 118 WebInspector.panels.sources.togglePause();
119 InspectorTest.waitUntilResumed(callback); 119 InspectorTest.waitUntilResumed(callback);
120 }; 120 };
121 121
122 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) 122 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options)
123 { 123 {
124 InspectorTest.waitUntilPaused(paused); 124 InspectorTest.waitUntilPaused(paused);
125 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt atus", setStatus); 125 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "setSt atus", setStatus);
126 126
127 var caption; 127 var caption;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 InspectorTest.scriptFormatter = function() 408 InspectorTest.scriptFormatter = function()
409 { 409 {
410 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source sView.EditorAction); 410 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source sView.EditorAction);
411 for (var i = 0; i < editorActions.length; ++i) { 411 for (var i = 0; i < editorActions.length; ++i) {
412 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction ) 412 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction )
413 return editorActions[i]; 413 return editorActions[i];
414 } 414 }
415 }; 415 };
416 416
417 }; 417 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/DebuggerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698