| OLD | NEW |
| 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 Loading... |
| 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(WebInspector.re
sourceTypes.Script, "", url); | 222 var contentProvider = new WebInspector.StaticContentProvider(url, WebInspect
or.resourceTypes.Script, Promise.resolve("")); |
| 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 Loading... |
| 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 } |
| OLD | NEW |