| 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 InspectorTest.testNetworkProject._resetForTest(); |
| 17 InspectorTest.testResourceBinding._resetForTest(); |
| 17 } | 18 } |
| 18 | 19 |
| 19 function createBreakpoint(url, lineNumber, condition, enabled) | 20 function createBreakpoint(url, lineNumber, condition, enabled) |
| 20 { | 21 { |
| 21 return { url: url, lineNumber: lineNumber, condition: condition, enabled
: enabled }; | 22 return { url: url, lineNumber: lineNumber, condition: condition, enabled
: enabled }; |
| 22 } | 23 } |
| 23 | 24 |
| 24 var serializedBreakpoints = []; | 25 var serializedBreakpoints = []; |
| 25 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true))
; | 26 serializedBreakpoints.push(createBreakpoint("a.js", 10, "foo == bar", true))
; |
| 26 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false)); | 27 serializedBreakpoints.push(createBreakpoint("a.js", 20, "", false)); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 }; | 341 }; |
| 341 </script> | 342 </script> |
| 342 | 343 |
| 343 </head> | 344 </head> |
| 344 | 345 |
| 345 <body onload="runTest()"> | 346 <body onload="runTest()"> |
| 346 <p>Tests BreakpointManager class.</p> | 347 <p>Tests BreakpointManager class.</p> |
| 347 | 348 |
| 348 </body> | 349 </body> |
| 349 </html> | 350 </html> |
| OLD | NEW |