| OLD | NEW |
| 1 var initialize_DebuggerTest = function() { | 1 var initialize_DebuggerTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadPanel("sources"); | 3 InspectorTest.preloadPanel("sources"); |
| 4 | 4 |
| 5 InspectorTest.startDebuggerTest = function(callback, quiet) | 5 InspectorTest.startDebuggerTest = function(callback, quiet) |
| 6 { | 6 { |
| 7 var testPath = WebInspector.settings.createSetting("testPath", "").get(); |
| 8 if (testPath.startsWith("LayoutTests/inspector/sources/debugger-step/")) |
| 9 InspectorTest.startDumpingProtocolMessages(); |
| 7 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); | 10 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); |
| 8 if (quiet !== undefined) | 11 if (quiet !== undefined) |
| 9 InspectorTest._quiet = quiet; | 12 InspectorTest._quiet = quiet; |
| 10 WebInspector.SourcesPanel.show(); | 13 WebInspector.SourcesPanel.show(); |
| 11 | 14 |
| 12 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip
t", InspectorTest._pausedScript, true); | 15 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip
t", InspectorTest._pausedScript, true); |
| 13 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri
pt", InspectorTest._resumedScript, true); | 16 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri
pt", InspectorTest._resumedScript, true); |
| 14 InspectorTest.safeWrap(callback)(); | 17 InspectorTest.safeWrap(callback)(); |
| 15 }; | 18 }; |
| 16 | 19 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { | 526 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { |
| 524 for (var i = 0; i < editorActions.length; ++i) { | 527 for (var i = 0; i < editorActions.length; ++i) { |
| 525 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) | 528 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) |
| 526 return editorActions[i]; | 529 return editorActions[i]; |
| 527 } | 530 } |
| 528 return null; | 531 return null; |
| 529 }); | 532 }); |
| 530 }; | 533 }; |
| 531 | 534 |
| 532 }; | 535 }; |
| OLD | NEW |