| OLD | NEW |
| 1 var initialize_BreakpointManagerTest = function() { | 1 var initialize_BreakpointManagerTest = function() { |
| 2 | 2 |
| 3 InspectorTest.createWorkspace = function() | 3 InspectorTest.createWorkspace = function() |
| 4 { | 4 { |
| 5 InspectorTest.testTargetManager = new SDK.TargetManager(); | 5 InspectorTest.testTargetManager = new SDK.TargetManager(); |
| 6 InspectorTest.testWorkspace = new Workspace.Workspace(); | 6 InspectorTest.testWorkspace = new Workspace.Workspace(); |
| 7 InspectorTest.testNetworkProjectManager = new Bindings.NetworkProjectManager
(InspectorTest.testTargetManager, InspectorTest.testWorkspace); | 7 InspectorTest.testNetworkProjectManager = new Bindings.NetworkProjectManager
(InspectorTest.testTargetManager, InspectorTest.testWorkspace); |
| 8 InspectorTest.testDebuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceB
inding(InspectorTest.testTargetManager, InspectorTest.testWorkspace); | 8 InspectorTest.testDebuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceB
inding(InspectorTest.testTargetManager, InspectorTest.testWorkspace); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 InspectorTest.uiSourceCodes = {}; | 28 InspectorTest.uiSourceCodes = {}; |
| 29 | 29 |
| 30 InspectorTest.initializeDefaultMappingOnTarget = function(target) | 30 InspectorTest.initializeDefaultMappingOnTarget = function(target) |
| 31 { | 31 { |
| 32 var defaultMapping = { | 32 var defaultMapping = { |
| 33 rawLocationToUILocation: function(rawLocation) | 33 rawLocationToUILocation: function(rawLocation) |
| 34 { | 34 { |
| 35 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiLocation(
rawLocation.lineNumber, 0); | 35 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiLocation(
rawLocation.lineNumber, 0); |
| 36 }, | 36 }, |
| 37 | 37 |
| 38 uiLocationToRawLocations: function(uiSourceCode, lineNumber) | 38 uiLocationToRawLocation: function(uiSourceCode, lineNumber) |
| 39 { | 39 { |
| 40 if (!InspectorTest.uiSourceCodes[uiSourceCode.url()]) | 40 if (!InspectorTest.uiSourceCodes[uiSourceCode.url()]) |
| 41 return []; | 41 return null; |
| 42 return [new SDK.DebuggerModel.Location(target.debuggerModel, uiSourc
eCode.url(), lineNumber, 0)]; | 42 return new SDK.DebuggerModel.Location(target.debuggerModel, uiSource
Code.url(), lineNumber, 0); |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 isIdentity: function() | 45 isIdentity: function() |
| 46 { | 46 { |
| 47 return true; | 47 return true; |
| 48 } | 48 } |
| 49 }; | 49 }; |
| 50 target.defaultMapping = defaultMapping; | 50 target.defaultMapping = defaultMapping; |
| 51 } | 51 } |
| 52 | 52 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 410 } |
| 411 | 411 |
| 412 function finish() | 412 function finish() |
| 413 { | 413 { |
| 414 InspectorTest.dumpBreakpointLocations(breakpointManager); | 414 InspectorTest.dumpBreakpointLocations(breakpointManager); |
| 415 next(); | 415 next(); |
| 416 } | 416 } |
| 417 } | 417 } |
| 418 | 418 |
| 419 } | 419 } |
| OLD | NEW |