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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/workspace-test.js"></script> 4 <script src="../../../http/tests/inspector/workspace-test.js"></script>
5 <script src="breakpoint-manager.js"></script> 5 <script src="breakpoint-manager.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var mockTarget; 9 var mockTarget;
10 var lastTargetId = 0; 10 var lastTargetId = 0;
11 11
12 function resetWorkspace(breakpointManager) 12 function resetWorkspace(breakpointManager)
13 { 13 {
14 mockTarget.debuggerModel.reset(); 14 mockTarget.debuggerModel.reset();
15 InspectorTest.addResult(" Resetting workspace."); 15 InspectorTest.addResult(" Resetting workspace.");
16 breakpointManager._debuggerWorkspaceBinding._reset(mockTarget); 16 breakpointManager._debuggerWorkspaceBinding._reset(mockTarget);
17 InspectorTest.testNetworkProject._reset(); 17 InspectorTest.testNetworkProject._reset();
18 } 18 }
19 19
20 function createBreakpoint(uiSourceCodeId, lineNumber, condition, enabled) 20 function createBreakpoint(url, lineNumber, condition, enabled)
21 { 21 {
22 return { sourceFileId: uiSourceCodeId, lineNumber: lineNumber, condition : condition, enabled: enabled }; 22 return { url: url, lineNumber: lineNumber, condition: condition, enabled : enabled };
23 } 23 }
24 24
25 var serializedBreakpoints = []; 25 var serializedBreakpoints = [];
26 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true)) ; 26 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true)) ;
27 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false)); 27 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false));
28 serializedBreakpoints.push(createBreakpoint("b.js", 3, "", true)); 28 serializedBreakpoints.push(createBreakpoint("b.js", 3, "", true));
29 29
30 InspectorTest.setupLiveLocationSniffers(); 30 InspectorTest.setupLiveLocationSniffers();
31 31
32 function addUISourceCode() 32 function addUISourceCode()
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 }; 341 };
342 </script> 342 </script>
343 343
344 </head> 344 </head>
345 345
346 <body onload="runTest()"> 346 <body onload="runTest()">
347 <p>Tests BreakpointManager class.</p> 347 <p>Tests BreakpointManager class.</p>
348 348
349 </body> 349 </body>
350 </html> 350 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698