| OLD | NEW |
| 1 function scheduleTestFunction() | 1 function scheduleTestFunction() |
| 2 { | 2 { |
| 3 setTimeout(testFunction, 0); | 3 setTimeout(testFunction, 0); |
| 4 } | 4 } |
| 5 | 5 |
| 6 var initialize_DebuggerTest = function() { | 6 var initialize_DebuggerTest = function() { |
| 7 | 7 |
| 8 InspectorTest.preloadPanel("sources"); | 8 InspectorTest.preloadPanel("sources"); |
| 9 | 9 |
| 10 InspectorTest.startDebuggerTest = function(callback, quiet) | 10 InspectorTest.startDebuggerTest = function(callback, quiet) |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 if (remainingFrames) | 298 if (remainingFrames) |
| 299 results.push(" <... skipped remaining frames ...>"); | 299 results.push(" <... skipped remaining frames ...>"); |
| 300 break; | 300 break; |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 return printed; | 303 return printed; |
| 304 } | 304 } |
| 305 | 305 |
| 306 function runtimeCallFramePosition() | 306 function runtimeCallFramePosition() |
| 307 { | 307 { |
| 308 var lineNumber = this.lineNumber ? this.lineNumber - 1 : 0; | 308 return new WebInspector.DebuggerModel.Location(debuggerModel, this.scrip
tId, this.lineNumber, this.columnNumber); |
| 309 var columnNumber = this.columnNumber ? this.columnNumber - 1 : 0; | |
| 310 return new WebInspector.DebuggerModel.Location(debuggerModel, this.scrip
tId, lineNumber, columnNumber); | |
| 311 } | 309 } |
| 312 | 310 |
| 313 results.push("Call stack:"); | 311 results.push("Call stack:"); |
| 314 printCallFrames(callFrames, WebInspector.DebuggerModel.CallFrame.prototype.l
ocation, WebInspector.DebuggerModel.CallFrame.prototype.returnValue); | 312 printCallFrames(callFrames, WebInspector.DebuggerModel.CallFrame.prototype.l
ocation, WebInspector.DebuggerModel.CallFrame.prototype.returnValue); |
| 315 while (asyncStackTrace) { | 313 while (asyncStackTrace) { |
| 316 results.push(" [" + (asyncStackTrace.description || "Async Call") + "
]"); | 314 results.push(" [" + (asyncStackTrace.description || "Async Call") + "
]"); |
| 317 var debuggerModel = WebInspector.DebuggerModel.fromTarget(WebInspector.t
argetManager.mainTarget()); | 315 var debuggerModel = WebInspector.DebuggerModel.fromTarget(WebInspector.t
argetManager.mainTarget()); |
| 318 var printed = printCallFrames(asyncStackTrace.callFrames, runtimeCallFra
mePosition); | 316 var printed = printCallFrames(asyncStackTrace.callFrames, runtimeCallFra
mePosition); |
| 319 if (!printed) | 317 if (!printed) |
| 320 results.pop(); | 318 results.pop(); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 574 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
| 577 threadsPane._onListItemClick(listItem); | 575 threadsPane._onListItemClick(listItem); |
| 578 } | 576 } |
| 579 | 577 |
| 580 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 578 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 581 { | 579 { |
| 582 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 580 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 583 } | 581 } |
| 584 | 582 |
| 585 }; | 583 }; |
| OLD | NEW |