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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.js

Issue 1974543002: DevTools: do not pro-actively query all StyleSheets for their content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 var initialize_BreakpointManagerTest = function() { 1 var initialize_BreakpointManagerTest = function() {
2 2
3 InspectorTest.uiSourceCodes = {}; 3 InspectorTest.uiSourceCodes = {};
4 4
5 InspectorTest.dumpTargetIds = false; 5 InspectorTest.dumpTargetIds = false;
6 6
7 InspectorTest.initializeDefaultMappingOnTarget = function(target) 7 InspectorTest.initializeDefaultMappingOnTarget = function(target)
8 { 8 {
9 var defaultMapping = { 9 var defaultMapping = {
10 rawLocationToUILocation: function(rawLocation) 10 rawLocationToUILocation: function(rawLocation)
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 return uiSourceCode; 212 return uiSourceCode;
213 } 213 }
214 } 214 }
215 } 215 }
216 216
217 InspectorTest.addUISourceCode = function(target, breakpointManager, url, doNotSe tSourceMapping, doNotAddScript) 217 InspectorTest.addUISourceCode = function(target, breakpointManager, url, doNotSe tSourceMapping, doNotAddScript)
218 { 218 {
219 if (!doNotAddScript) 219 if (!doNotAddScript)
220 InspectorTest.addScript(target, breakpointManager, url); 220 InspectorTest.addScript(target, breakpointManager, url);
221 InspectorTest.addResult(" Adding UISourceCode: " + url); 221 InspectorTest.addResult(" Adding UISourceCode: " + url);
222 var contentProvider = new WebInspector.StaticContentProvider(url, WebInspect or.resourceTypes.Script, Promise.resolve("")); 222 var contentProvider = WebInspector.StaticContentProvider.fromString(url, Web Inspector.resourceTypes.Script, "");
223 var binding = breakpointManager._debuggerWorkspaceBinding; 223 var binding = breakpointManager._debuggerWorkspaceBinding;
224 var uiSourceCode = InspectorTest.testNetworkProject.addFile(contentProvider, null); 224 var uiSourceCode = InspectorTest.testNetworkProject.addFile(contentProvider, null);
225 InspectorTest.uiSourceCodes[url] = uiSourceCode; 225 InspectorTest.uiSourceCodes[url] = uiSourceCode;
226 if (!doNotSetSourceMapping) { 226 if (!doNotSetSourceMapping) {
227 breakpointManager._debuggerWorkspaceBinding.setSourceMapping(target, uiS ourceCode, breakpointManager.defaultMapping); 227 breakpointManager._debuggerWorkspaceBinding.setSourceMapping(target, uiS ourceCode, breakpointManager.defaultMapping);
228 breakpointManager._debuggerWorkspaceBinding.updateLocations(target.debug gerModel.scriptForId(url)); 228 breakpointManager._debuggerWorkspaceBinding.updateLocations(target.debug gerModel.scriptForId(url));
229 } 229 }
230 return uiSourceCode; 230 return uiSourceCode;
231 } 231 }
232 232
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 383
384 function finish() 384 function finish()
385 { 385 {
386 InspectorTest.dumpBreakpointLocations(breakpointManager); 386 InspectorTest.dumpBreakpointLocations(breakpointManager);
387 next(); 387 next();
388 } 388 }
389 } 389 }
390 390
391 } 391 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698