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 if (quiet !== undefined) | 5 if (quiet !== undefined) |
6 InspectorTest._quiet = quiet; | 6 InspectorTest._quiet = quiet; |
7 WebInspector.inspectorView.showPanel("sources"); | 7 WebInspector.inspectorView.showPanel("sources"); |
8 | 8 |
9 if (WebInspector.debuggerModel.debuggerEnabled()) | 9 if (WebInspector.debuggerModel.debuggerEnabled()) |
10 startTest(); | 10 startTest(); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 var textEditor = sourceFrame._textEditor; | 249 var textEditor = sourceFrame._textEditor; |
250 for (var i = 0; i < textEditor.linesCount; ++i) | 250 for (var i = 0; i < textEditor.linesCount; ++i) |
251 InspectorTest.addResult(textEditor.line(i)); | 251 InspectorTest.addResult(textEditor.line(i)); |
252 InspectorTest.addResult("==Source frame contents end=="); | 252 InspectorTest.addResult("==Source frame contents end=="); |
253 }; | 253 }; |
254 | 254 |
255 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId
s, asyncStackTrace) | 255 InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointId
s, asyncStackTrace) |
256 { | 256 { |
257 if (!InspectorTest._quiet) | 257 if (!InspectorTest._quiet) |
258 InspectorTest.addResult("Script execution paused."); | 258 InspectorTest.addResult("Script execution paused."); |
259 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame
.fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason
, breakpointIds, asyncStackTrace]; | 259 InspectorTest._pausedScriptArguments = [WebInspector.DebuggerModel.CallFrame
.fromPayloadArray(WebInspector.targetManager.activeTarget(), callFrames), reason
, breakpointIds, asyncStackTrace, auxData]; |
260 if (InspectorTest._waitUntilPausedCallback) { | 260 if (InspectorTest._waitUntilPausedCallback) { |
261 var callback = InspectorTest._waitUntilPausedCallback; | 261 var callback = InspectorTest._waitUntilPausedCallback; |
262 delete InspectorTest._waitUntilPausedCallback; | 262 delete InspectorTest._waitUntilPausedCallback; |
263 callback.apply(callback, InspectorTest._pausedScriptArguments); | 263 callback.apply(callback, InspectorTest._pausedScriptArguments); |
264 } | 264 } |
265 }; | 265 }; |
266 | 266 |
267 InspectorTest._resumedScript = function() | 267 InspectorTest._resumedScript = function() |
268 { | 268 { |
269 if (!InspectorTest._quiet) | 269 if (!InspectorTest._quiet) |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 InspectorTest.scriptFormatter = function() | 441 InspectorTest.scriptFormatter = function() |
442 { | 442 { |
443 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source
sView.EditorAction); | 443 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source
sView.EditorAction); |
444 for (var i = 0; i < editorActions.length; ++i) { | 444 for (var i = 0; i < editorActions.length; ++i) { |
445 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction
) | 445 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction
) |
446 return editorActions[i]; | 446 return editorActions[i]; |
447 } | 447 } |
448 }; | 448 }; |
449 | 449 |
450 }; | 450 }; |
OLD | NEW |