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); |
11 InspectorTest.addSniffer(WebInspector.debuggerModel, "_resumedScript", Inspe
ctorTest._resumedScript, true); | 11 InspectorTest.addSniffer(WebInspector.debuggerModel, "_resumedScript", Inspe
ctorTest._resumedScript, true); |
12 InspectorTest.safeWrap(callback)(); | 12 InspectorTest.safeWrap(callback)(); |
13 }; | 13 }; |
14 | 14 |
15 InspectorTest.completeDebuggerTest = function() | 15 InspectorTest.completeDebuggerTest = function() |
16 { | 16 { |
17 WebInspector.debuggerModel.setBreakpointsActive(true); | 17 WebInspector.breakpointManager.setBreakpointsActive(true); |
18 InspectorTest.resumeExecution(InspectorTest.completeTest.bind(InspectorTest)
); | 18 InspectorTest.resumeExecution(InspectorTest.completeTest.bind(InspectorTest)
); |
19 }; | 19 }; |
20 | 20 |
21 InspectorTest.runDebuggerTestSuite = function(testSuite) | 21 InspectorTest.runDebuggerTestSuite = function(testSuite) |
22 { | 22 { |
23 var testSuiteTests = testSuite.slice(); | 23 var testSuiteTests = testSuite.slice(); |
24 | 24 |
25 function runner() | 25 function runner() |
26 { | 26 { |
27 if (!testSuiteTests.length) { | 27 if (!testSuiteTests.length) { |
(...skipping 380 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 |