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

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

Issue 2515213005: DevTools: cleanup breakpointManager after removal of NetworkMapping (Closed)
Patch Set: set a url instead of sourceFileId Created 4 years 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 { 292 {
293 InspectorTest.addResult(" Removing breakpoint at " + uiSourceCode.url() + " :" + lineNumber + ":" + columnNumber); 293 InspectorTest.addResult(" Removing breakpoint at " + uiSourceCode.url() + " :" + lineNumber + ":" + columnNumber);
294 breakpointManager.findBreakpoint(uiSourceCode, lineNumber, columnNumber).rem ove(); 294 breakpointManager.findBreakpoint(uiSourceCode, lineNumber, columnNumber).rem ove();
295 } 295 }
296 296
297 InspectorTest.dumpBreakpointStorage = function(breakpointManager) 297 InspectorTest.dumpBreakpointStorage = function(breakpointManager)
298 { 298 {
299 var breakpoints = breakpointManager._storage._setting.get(); 299 var breakpoints = breakpointManager._storage._setting.get();
300 InspectorTest.addResult(" Dumping Storage"); 300 InspectorTest.addResult(" Dumping Storage");
301 for (var i = 0; i < breakpoints.length; ++i) 301 for (var i = 0; i < breakpoints.length; ++i)
302 InspectorTest.addResult(" " + breakpoints[i].sourceFileId + ":" + bre akpoints[i].lineNumber + " enabled:" + breakpoints[i].enabled + " condition:" + breakpoints[i].condition); 302 InspectorTest.addResult(" " + breakpoints[i].url + ":" + breakpoints[ i].lineNumber + " enabled:" + breakpoints[i].enabled + " condition:" + breakpoi nts[i].condition);
303 } 303 }
304 304
305 InspectorTest.dumpBreakpointLocations = function(breakpointManager) 305 InspectorTest.dumpBreakpointLocations = function(breakpointManager)
306 { 306 {
307 var allBreakpointLocations = breakpointManager.allBreakpointLocations(); 307 var allBreakpointLocations = breakpointManager.allBreakpointLocations();
308 InspectorTest.addResult(" Dumping Breakpoint Locations"); 308 InspectorTest.addResult(" Dumping Breakpoint Locations");
309 var lastUISourceCode = null; 309 var lastUISourceCode = null;
310 var locations = []; 310 var locations = [];
311 311
312 function dumpLocations(uiSourceCode, locations) 312 function dumpLocations(uiSourceCode, locations)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } 379 }
380 380
381 function finish() 381 function finish()
382 { 382 {
383 InspectorTest.dumpBreakpointLocations(breakpointManager); 383 InspectorTest.dumpBreakpointLocations(breakpointManager);
384 next(); 384 next();
385 } 385 }
386 } 386 }
387 387
388 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698