| 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; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); | 231 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); |
| 232 window.setBreakpointCallback = step2.bind(this); | 232 window.setBreakpointCallback = step2.bind(this); |
| 233 | 233 |
| 234 function step2() | 234 function step2() |
| 235 { | 235 { |
| 236 InspectorTest.dumpBreakpointLocations(breakpointManager); | 236 InspectorTest.dumpBreakpointLocations(breakpointManager); |
| 237 resetWorkspace(breakpointManager); | 237 resetWorkspace(breakpointManager); |
| 238 InspectorTest.addResult(" Resolving provisional breakpoint."); | 238 InspectorTest.addResult(" Resolving provisional breakpoint."); |
| 239 InspectorTest.addScript(mockTarget, breakpointManager, "a.js"); | 239 InspectorTest.addScript(mockTarget, breakpointManager, "a.js"); |
| 240 mockTarget.debuggerModel._breakpointResolved("a.js:10", new SDK.
DebuggerModel.Location(mockTarget.debuggerModel, "a.js", 11, 0)); | 240 mockTarget.debuggerModel._breakpointResolved("a.js:10", new SDK.
DebuggerModel.Location(mockTarget.debuggerModel, "a.js", 11, 0)); |
| 241 var breakpoints = breakpointManager.allBreakpoints(); | 241 var breakpoints = breakpointManager._allBreakpoints(); |
| 242 InspectorTest.assertEquals(1, breakpoints.length, "Exactly one p
rovisional breakpoint should be registered in breakpoint manager."); | 242 InspectorTest.assertEquals(1, breakpoints.length, "Exactly one p
rovisional breakpoint should be registered in breakpoint manager."); |
| 243 InspectorTest.finishBreakpointTest(breakpointManager, next); | 243 InspectorTest.finishBreakpointTest(breakpointManager, next); |
| 244 } | 244 } |
| 245 }, | 245 }, |
| 246 | 246 |
| 247 function testSourceMappingReload(next) | 247 function testSourceMappingReload(next) |
| 248 { | 248 { |
| 249 function createSourceMapping(uiSourceCodeA, uiSourceCodeB) | 249 function createSourceMapping(uiSourceCodeA, uiSourceCodeB) |
| 250 { | 250 { |
| 251 var mapping = { | 251 var mapping = { |
| (...skipping 89 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 |