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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 if (!InspectorTest._pausedScriptArguments) | 142 if (!InspectorTest._pausedScriptArguments) |
143 callback(); | 143 callback(); |
144 else | 144 else |
145 InspectorTest._waitUntilResumedCallback = callback; | 145 InspectorTest._waitUntilResumedCallback = callback; |
146 }; | 146 }; |
147 | 147 |
148 InspectorTest.resumeExecution = function(callback) | 148 InspectorTest.resumeExecution = function(callback) |
149 { | 149 { |
150 if (WebInspector.panels.sources.paused) | 150 if (WebInspector.panels.sources.paused) |
151 WebInspector.panels.sources._togglePause(); | 151 WebInspector.panels.sources.togglePause(); |
152 InspectorTest.waitUntilResumed(callback); | 152 InspectorTest.waitUntilResumed(callback); |
153 }; | 153 }; |
154 | 154 |
155 InspectorTest.captureStackTrace = function(callFrames, asyncStackTrace, options) | 155 InspectorTest.captureStackTrace = function(callFrames, asyncStackTrace, options) |
156 { | 156 { |
157 InspectorTest.addResult(InspectorTest.captureStackTraceIntoString(callFrames
, asyncStackTrace, options)); | 157 InspectorTest.addResult(InspectorTest.captureStackTraceIntoString(callFrames
, asyncStackTrace, options)); |
158 }; | 158 }; |
159 | 159 |
160 InspectorTest.captureStackTraceIntoString = function(callFrames, asyncStackTrace
, options) | 160 InspectorTest.captureStackTraceIntoString = function(callFrames, asyncStackTrace
, options) |
161 { | 161 { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 InspectorTest.scriptFormatter = function() | 394 InspectorTest.scriptFormatter = function() |
395 { | 395 { |
396 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source
sView.EditorAction); | 396 var editorActions = WebInspector.moduleManager.instances(WebInspector.Source
sView.EditorAction); |
397 for (var i = 0; i < editorActions.length; ++i) { | 397 for (var i = 0; i < editorActions.length; ++i) { |
398 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction
) | 398 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAction
) |
399 return editorActions[i]; | 399 return editorActions[i]; |
400 } | 400 } |
401 }; | 401 }; |
402 | 402 |
403 }; | 403 }; |
OLD | NEW |