| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |