| 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 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t
o be enabled"); | 7 console.assert(WebInspector.debuggerModel.debuggerEnabled(), "Debugger has t
o be enabled"); |
| 8 if (quiet !== undefined) | 8 if (quiet !== undefined) |
| 9 InspectorTest._quiet = quiet; | 9 InspectorTest._quiet = quiet; |
| 10 WebInspector.SourcesPanel.show(); | 10 WebInspector.SourcesPanel.show(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 sourceFrame._breakpointManager.findBreakpointOnLine(sourceFrame._uiSourceCod
e, lineNumber).remove(); | 352 sourceFrame._breakpointManager.findBreakpointOnLine(sourceFrame._uiSourceCod
e, lineNumber).remove(); |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 InspectorTest.dumpBreakpointSidebarPane = function(title) | 355 InspectorTest.dumpBreakpointSidebarPane = function(title) |
| 356 { | 356 { |
| 357 var paneElement = WebInspector.panels.sources.sidebarPanes.jsBreakpoints.lis
tElement; | 357 var paneElement = WebInspector.panels.sources.sidebarPanes.jsBreakpoints.lis
tElement; |
| 358 InspectorTest.addResult("Breakpoint sidebar pane " + (title || "")); | 358 InspectorTest.addResult("Breakpoint sidebar pane " + (title || "")); |
| 359 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(paneElement)
); | 359 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(paneElement)
); |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 InspectorTest.dumpScopeVariablesSidebarPane = function() |
| 363 { |
| 364 InspectorTest.addResult("Scope variables sidebar pane:"); |
| 365 var sections = WebInspector.panels.sources.sidebarPanes.scopechain._sections
; |
| 366 for (var i = 0; i < sections.length; ++i) { |
| 367 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(sections
[i].element)); |
| 368 if (!sections[i].expanded) |
| 369 InspectorTest.addResult(" <section collapsed>"); |
| 370 } |
| 371 }; |
| 372 |
| 373 InspectorTest.expandScopeVariablesSidebarPane = function(callback) |
| 374 { |
| 375 // Expand all but the global scope. Expanding global scope takes for too lon
g so we keep it collapsed. |
| 376 var sections = WebInspector.panels.sources.sidebarPanes.scopechain._sections
; |
| 377 for (var i = 0; i < sections.length - 1; ++i) |
| 378 sections[i].expand(); |
| 379 InspectorTest.runAfterPendingDispatches(callback); |
| 380 }; |
| 381 |
| 362 InspectorTest.expandProperties = function(properties, callback) | 382 InspectorTest.expandProperties = function(properties, callback) |
| 363 { | 383 { |
| 364 var index = 0; | 384 var index = 0; |
| 365 function expandNextPath() | 385 function expandNextPath() |
| 366 { | 386 { |
| 367 if (index === properties.length) { | 387 if (index === properties.length) { |
| 368 InspectorTest.safeWrap(callback)(); | 388 InspectorTest.safeWrap(callback)(); |
| 369 return; | 389 return; |
| 370 } | 390 } |
| 371 var parentTreeElement = properties[index++]; | 391 var parentTreeElement = properties[index++]; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { | 482 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { |
| 463 for (var i = 0; i < editorActions.length; ++i) { | 483 for (var i = 0; i < editorActions.length; ++i) { |
| 464 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) | 484 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) |
| 465 return editorActions[i]; | 485 return editorActions[i]; |
| 466 } | 486 } |
| 467 return null; | 487 return null; |
| 468 }); | 488 }); |
| 469 }; | 489 }; |
| 470 | 490 |
| 471 }; | 491 }; |
| OLD | NEW |