| 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="../../../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 Loading... |
| 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> |
| OLD | NEW |