OLD | NEW |
1 var initialize_BreakpointManagerTest = function() { | 1 var initialize_BreakpointManagerTest = function() { |
2 | 2 |
3 InspectorTest.uiSourceCodes = {}; | 3 InspectorTest.uiSourceCodes = {}; |
4 | 4 |
5 InspectorTest.initializeDefaultMappingOnTarget = function (target) { | 5 InspectorTest.initializeDefaultMappingOnTarget = function (target) { |
6 var defaultMapping = { | 6 var defaultMapping = { |
7 rawLocationToUILocation: function(rawLocation) | 7 rawLocationToUILocation: function(rawLocation) |
8 { | 8 { |
9 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiLocation(
rawLocation.lineNumber, 0); | 9 return InspectorTest.uiSourceCodes[rawLocation.scriptId].uiLocation(
rawLocation.lineNumber, 0); |
10 }, | 10 }, |
(...skipping 23 matching lines...) Expand all Loading... |
34 this._sourceMapping = sourceMapping; | 34 this._sourceMapping = sourceMapping; |
35 this._breakpoints = {}; | 35 this._breakpoints = {}; |
36 } | 36 } |
37 | 37 |
38 InspectorTest.DebuggerModelMock.prototype = { | 38 InspectorTest.DebuggerModelMock.prototype = { |
39 target: function() | 39 target: function() |
40 { | 40 { |
41 return this._target; | 41 return this._target; |
42 }, | 42 }, |
43 | 43 |
| 44 debuggerEnabled: function() |
| 45 { |
| 46 return true; |
| 47 }, |
| 48 |
44 _addScript: function(scriptId, url) | 49 _addScript: function(scriptId, url) |
45 { | 50 { |
46 this._scripts[scriptId] = new WebInspector.Script(this._target, scriptId
, url); | 51 this._scripts[scriptId] = new WebInspector.Script(this._target, scriptId
, url); |
47 this._scripts[scriptId].pushSourceMapping(this._sourceMapping); | 52 this._scripts[scriptId].pushSourceMapping(this._sourceMapping); |
48 }, | 53 }, |
49 | 54 |
50 _scriptForURL: function(url) | 55 _scriptForURL: function(url) |
51 { | 56 { |
52 for (var scriptId in this._scripts) { | 57 for (var scriptId in this._scripts) { |
53 var script = this._scripts[scriptId]; | 58 var script = this._scripts[scriptId]; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 { | 304 { |
300 InspectorTest.dumpBreakpointLocations(breakpointManager); | 305 InspectorTest.dumpBreakpointLocations(breakpointManager); |
301 next(); | 306 next(); |
302 } | 307 } |
303 | 308 |
304 InspectorTest.dumpBreakpointLocations(breakpointManager); | 309 InspectorTest.dumpBreakpointLocations(breakpointManager); |
305 InspectorTest.resetBreakpointManager(breakpointManager, finish); | 310 InspectorTest.resetBreakpointManager(breakpointManager, finish); |
306 } | 311 } |
307 | 312 |
308 } | 313 } |
OLD | NEW |