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