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

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

Issue 323503002: Devtools: Support disabling and enabling of debugger in TargetBreakpoints (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix expectations Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/debugger-disable-add-breakpoint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698