| 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/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/resources/compiled.js"></script> | 5 <script src="../../../http/tests/inspector/resources/compiled.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var test = function() | 8 var test = function() |
| 9 { | 9 { |
| 10 InspectorTest.startDebuggerTest(step1); | 10 InspectorTest.startDebuggerTest(step1); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 function onBreakpointsReady() | 35 function onBreakpointsReady() |
| 36 { | 36 { |
| 37 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:"
); | 37 InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:"
); |
| 38 waitForBreakpoints(); | 38 waitForBreakpoints(); |
| 39 InspectorTest.reloadPage(onPageReloaded); | 39 InspectorTest.reloadPage(onPageReloaded); |
| 40 } | 40 } |
| 41 | 41 |
| 42 function waitForBreakpoints() | 42 function waitForBreakpoints() |
| 43 { | 43 { |
| 44 var breakpointAddCounter = 4; // Before source map loaded and after. | 44 var breakpointAddCounter = 4; // Before source map loaded and after. |
| 45 var jsBreakpoints = WebInspector.panels.sources.sidebarPanes.jsBreak
points; | 45 var jsBreakpoints = self.runtime.sharedInstance(WebInspector.JavaScr
iptBreakpointsSidebarPane); |
| 46 jsBreakpoints.didReceiveBreakpointLineForTest = function(uiSourceCod
e) | 46 jsBreakpoints.didReceiveBreakpointLineForTest = function(uiSourceCod
e) |
| 47 { | 47 { |
| 48 if (WebInspector.CompilerScriptMapping.StubProjectID === uiSourc
eCode.project().id()) | 48 if (WebInspector.CompilerScriptMapping.StubProjectID === uiSourc
eCode.project().id()) |
| 49 return; | 49 return; |
| 50 if (!uiSourceCode.url().endsWith("source1.js")) | 50 if (!uiSourceCode.url().endsWith("source1.js")) |
| 51 return; | 51 return; |
| 52 --breakpointAddCounter; | 52 --breakpointAddCounter; |
| 53 if (breakpointAddCounter) | 53 if (breakpointAddCounter) |
| 54 return; | 54 return; |
| 55 breakpointSourcesReceived = true; | 55 breakpointSourcesReceived = true; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 80 </script> | 80 </script> |
| 81 </head> | 81 </head> |
| 82 | 82 |
| 83 <body onload="runTest()"> | 83 <body onload="runTest()"> |
| 84 <p> | 84 <p> |
| 85 Tests "reload" from within inspector window while on pause. | 85 Tests "reload" from within inspector window while on pause. |
| 86 </p> | 86 </p> |
| 87 | 87 |
| 88 </body> | 88 </body> |
| 89 </html> | 89 </html> |
| OLD | NEW |