| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | |
| 5 <script src="../../../http/tests/inspector/resources/compiled.js"></script> | |
| 6 <script> | |
| 7 | |
| 8 var test = function() | |
| 9 { | |
| 10 InspectorTest.startDebuggerTest(step1); | |
| 11 | |
| 12 function step1() | |
| 13 { | |
| 14 InspectorTest.showScriptSource("source1.js", step2); | |
| 15 } | |
| 16 | |
| 17 function step2(sourceFrame) | |
| 18 { | |
| 19 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint
.prototype, "_addResolvedLocation", didSetBreakpointInDebugger, true); | |
| 20 | |
| 21 InspectorTest.setBreakpoint(sourceFrame, 14, "", true); | |
| 22 InspectorTest.setBreakpoint(sourceFrame, 15, "", true); | |
| 23 | |
| 24 var counter = 2; | |
| 25 | |
| 26 function didSetBreakpointInDebugger() | |
| 27 { | |
| 28 counter--; | |
| 29 if (!counter) { | |
| 30 //Both breakpoints are resolved before reload | |
| 31 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before relo
ad:"); | |
| 32 InspectorTest.addSniffer(WebInspector.CompilerScriptMapping.prot
otype, "_sourceMapLoaded", onSourceMapLoaded); | |
| 33 InspectorTest.reloadPage(); | |
| 34 } | |
| 35 } | |
| 36 } | |
| 37 | |
| 38 function onSourceMapLoaded() | |
| 39 { | |
| 40 InspectorTest.dumpBreakpointSidebarPane("Breakpoints after reload:"); | |
| 41 InspectorTest.completeDebuggerTest(); | |
| 42 } | |
| 43 } | |
| 44 | |
| 45 </script> | |
| 46 </head> | |
| 47 | |
| 48 <body onload="runTest()"> | |
| 49 <p> | |
| 50 Tests "reload" from within inspector window while on pause. | |
| 51 </p> | |
| 52 | |
| 53 </body> | |
| 54 </html> | |
| OLD | NEW |