| 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 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 | 9 |
| 10 function test() | 10 function test() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 InspectorTest.setBreakpoint(breakpointManager, uiSourceCode, 30, 0,
"", true, step1); | 31 InspectorTest.setBreakpoint(breakpointManager, uiSourceCode, 30, 0,
"", true, step1); |
| 32 | 32 |
| 33 function step1() | 33 function step1() |
| 34 { | 34 { |
| 35 target1.debuggerModel._breakpointResolved("a.js:30", new WebInsp
ector.DebuggerModel.Location(target1, "a.js", 131, 0)); | 35 target1.debuggerModel._breakpointResolved("a.js:30", new WebInsp
ector.DebuggerModel.Location(target1, "a.js", 131, 0)); |
| 36 InspectorTest.dumpBreakpointLocations(breakpointManager); | 36 InspectorTest.dumpBreakpointLocations(breakpointManager); |
| 37 InspectorTest.addResult(" Second target added"); | 37 InspectorTest.addResult(" Second target added"); |
| 38 target2 = InspectorTest.createMockTarget(2); | 38 target2 = InspectorTest.createMockTarget(2); |
| 39 InspectorTest.testTargetManager.addTarget(target2); | 39 InspectorTest.testTargetManager.addTarget(target2); |
| 40 target2.debuggerModel._addScript("a.js", "a.js"); | 40 target2.debuggerModel._addScript("a.js", "a.js"); |
| 41 uiSourceCode.setSourceMappingForTarget(target2, target2.defaultM
apping); | 41 breakpointManager._debuggerWorkspaceBinding.setSourceMapping(tar
get2, uiSourceCode, target2.defaultMapping); |
| 42 window.setBreakpointCallback = step2; | 42 window.setBreakpointCallback = step2; |
| 43 } | 43 } |
| 44 | 44 |
| 45 function step2() | 45 function step2() |
| 46 { | 46 { |
| 47 target2.debuggerModel._breakpointResolved("a.js:30", new WebInsp
ector.DebuggerModel.Location(target2, "a.js", 30, 0)); | 47 target2.debuggerModel._breakpointResolved("a.js:30", new WebInsp
ector.DebuggerModel.Location(target2, "a.js", 30, 0)); |
| 48 InspectorTest.dumpBreakpointLocations(breakpointManager); | 48 InspectorTest.dumpBreakpointLocations(breakpointManager); |
| 49 InspectorTest.addResult(" First target removed"); | 49 InspectorTest.addResult(" First target removed"); |
| 50 removeTarget(target1); | 50 removeTarget(target1); |
| 51 InspectorTest.dumpBreakpointLocations(breakpointManager); | 51 InspectorTest.dumpBreakpointLocations(breakpointManager); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 }; | 86 }; |
| 87 </script> | 87 </script> |
| 88 | 88 |
| 89 </head> | 89 </head> |
| 90 | 90 |
| 91 <body onload="runTest()"> | 91 <body onload="runTest()"> |
| 92 <p>Tests BreakpointManager class.</p> | 92 <p>Tests BreakpointManager class.</p> |
| 93 | 93 |
| 94 </body> | 94 </body> |
| 95 </html> | 95 </html> |
| OLD | NEW |