Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js

Issue 2145483002: [DevTools] make Runtime.CallFrame 0-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-document-initiator-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-document-initiator-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698