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

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

Issue 1649553002: [DevTools] Support source map with blackboxing in call frame sidebar, console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 var results = []; 273 var results = [];
274 options = options || {}; 274 options = options || {};
275 275
276 function printCallFrames(callFrames) 276 function printCallFrames(callFrames)
277 { 277 {
278 var printed = 0; 278 var printed = 0;
279 for (var i = 0; i < callFrames.length; i++) { 279 for (var i = 0; i < callFrames.length; i++) {
280 var frame = callFrames[i]; 280 var frame = callFrames[i];
281 var script = frame.location().script(); 281 var script = frame.location().script();
282 var uiLocation = WebInspector.debuggerWorkspaceBinding.rawLocationTo UILocation(frame.location()); 282 var uiLocation = WebInspector.debuggerWorkspaceBinding.rawLocationTo UILocation(frame.location());
283 var isFramework = WebInspector.BlackboxSupport.isBlackboxedURL(scrip t.sourceURL); 283 var isFramework = WebInspector.BlackboxSupport.isBlackboxedScriptLoc ation(frame.location());
284 if (options.dropFrameworkCallFrames && isFramework) 284 if (options.dropFrameworkCallFrames && isFramework)
285 continue; 285 continue;
286 var url; 286 var url;
287 var lineNumber; 287 var lineNumber;
288 if (uiLocation && uiLocation.uiSourceCode.project().type() !== WebIn spector.projectTypes.Debugger) { 288 if (uiLocation && uiLocation.uiSourceCode.project().type() !== WebIn spector.projectTypes.Debugger) {
289 url = uiLocation.uiSourceCode.name(); 289 url = uiLocation.uiSourceCode.name();
290 lineNumber = uiLocation.lineNumber + 1; 290 lineNumber = uiLocation.lineNumber + 1;
291 } else { 291 } else {
292 url = WebInspector.displayNameForURL(script.sourceURL); 292 url = WebInspector.displayNameForURL(script.sourceURL);
293 lineNumber = frame.location().lineNumber + 1; 293 lineNumber = frame.location().lineNumber + 1;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 } 568 }
569 569
570 InspectorTest.selectThread = function(target) 570 InspectorTest.selectThread = function(target)
571 { 571 {
572 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads; 572 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads;
573 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target)); 573 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target));
574 threadsPane._onListItemClick(listItem); 574 threadsPane._onListItemClick(listItem);
575 } 575 }
576 576
577 }; 577 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-with-source-map-blackboxing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698