| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 var textEditor = sourceFrame._textEditor; | 216 var textEditor = sourceFrame._textEditor; |
| 217 for (var i = 0; i < textEditor.linesCount; ++i) | 217 for (var i = 0; i < textEditor.linesCount; ++i) |
| 218 InspectorTest.addResult(textEditor.line(i)); | 218 InspectorTest.addResult(textEditor.line(i)); |
| 219 InspectorTest.addResult("==Source frame contents end=="); | 219 InspectorTest.addResult("==Source frame contents end=="); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId
s, asyncStackTrace) | 222 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId
s, asyncStackTrace) |
| 223 { | 223 { |
| 224 if (!InspectorTest._quiet) | 224 if (!InspectorTest._quiet) |
| 225 InspectorTest.addResult("Script execution paused."); | 225 InspectorTest.addResult("Script execution paused."); |
| 226 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame
.fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason
, breakpointIds, asyncStackTrace, auxData]; | 226 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame
.fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason
, breakpointIds, asyncStackTrace]; |
| 227 if (InspectorTest._waitUntilPausedCallback) { | 227 if (InspectorTest._waitUntilPausedCallback) { |
| 228 var callback = InspectorTest._waitUntilPausedCallback; | 228 var callback = InspectorTest._waitUntilPausedCallback; |
| 229 delete InspectorTest._waitUntilPausedCallback; | 229 delete InspectorTest._waitUntilPausedCallback; |
| 230 callback.apply(callback, InspectorTest._pausedScriptArguments); | 230 callback.apply(callback, InspectorTest._pausedScriptArguments); |
| 231 } | 231 } |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 InspectorTest._resumedScript = function() | 234 InspectorTest._resumedScript = function() |
| 235 { | 235 { |
| 236 if (!InspectorTest._quiet) | 236 if (!InspectorTest._quiet) |
| (...skipping 171 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 |