| OLD | NEW |
| 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="breakpoint-manager.js"></script> | 4 <script src="breakpoint-manager.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var mockTarget; | 8 var mockTarget; |
| 9 var lastTargetId = 0; | 9 var lastTargetId = 0; |
| 10 | 10 |
| 11 function resetWorkspace(breakpointManager) | 11 function resetWorkspace(breakpointManager) |
| 12 { | 12 { |
| 13 mockTarget.debuggerModel.reset(); | 13 mockTarget.debuggerModel.reset(); |
| 14 InspectorTest.addResult(" Resetting workspace."); | 14 InspectorTest.addResult(" Resetting workspace."); |
| 15 breakpointManager._debuggerWorkspaceBinding._reset(mockTarget.debuggerMo
del); | 15 breakpointManager._debuggerWorkspaceBinding._reset(mockTarget.debuggerMo
del); |
| 16 InspectorTest.testNetworkProject._reset(); | 16 // Clean all network projects. |
| 17 for (var project of InspectorTest.testNetworkProject._workspaceProjects.
values()) |
| 18 project.removeProject(); |
| 19 InspectorTest.testNetworkProject._workspaceProjects.clear(); |
| 17 } | 20 } |
| 18 | 21 |
| 19 function createBreakpoint(url, lineNumber, condition, enabled) | 22 function createBreakpoint(url, lineNumber, condition, enabled) |
| 20 { | 23 { |
| 21 return { url: url, lineNumber: lineNumber, condition: condition, enabled
: enabled }; | 24 return { url: url, lineNumber: lineNumber, condition: condition, enabled
: enabled }; |
| 22 } | 25 } |
| 23 | 26 |
| 24 var serializedBreakpoints = []; | 27 var serializedBreakpoints = []; |
| 25 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true))
; | 28 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true))
; |
| 26 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false)); | 29 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false)); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 }; | 343 }; |
| 341 </script> | 344 </script> |
| 342 | 345 |
| 343 </head> | 346 </head> |
| 344 | 347 |
| 345 <body onload="runTest()"> | 348 <body onload="runTest()"> |
| 346 <p>Tests BreakpointManager class.</p> | 349 <p>Tests BreakpointManager class.</p> |
| 347 | 350 |
| 348 </body> | 351 </body> |
| 349 </html> | 352 </html> |
| OLD | NEW |