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.testResourceMappingModelInfo._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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 }; | 230 }; |
230 </script> | 231 </script> |
231 | 232 |
232 </head> | 233 </head> |
233 | 234 |
234 <body onload="runTest()"> | 235 <body onload="runTest()"> |
235 <p>Tests BreakpointManager class.</p> | 236 <p>Tests BreakpointManager class.</p> |
236 | 237 |
237 </body> | 238 </body> |
238 </html> | 239 </html> |
OLD | NEW |