| 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/workspace-test.js"></script> | 5 <script src="../../../http/tests/inspector/workspace-test.js"></script> |
| 6 <script src="resources/load-dynamic-script.js"></script> | 6 <script src="resources/load-dynamic-script.js"></script> |
| 7 <script> | 7 <script> |
| 8 function foobar() | 8 function foobar() |
| 9 { | 9 { |
| 10 var i = 0; | 10 var i = 0; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 var breakpointManager = WebInspector.breakpointManager; | 34 var breakpointManager = WebInspector.breakpointManager; |
| 35 var breakpoints = breakpointManager._storage._setting.get(); | 35 var breakpoints = breakpointManager._storage._setting.get(); |
| 36 InspectorTest.addResult(" Dumping breakpoint storage"); | 36 InspectorTest.addResult(" Dumping breakpoint storage"); |
| 37 for (var i = 0; i < breakpoints.length; ++i) | 37 for (var i = 0; i < breakpoints.length; ++i) |
| 38 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s
ourceFileId) + ":" + breakpoints[i].lineNumber); | 38 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s
ourceFileId) + ":" + breakpoints[i].lineNumber); |
| 39 } | 39 } |
| 40 | 40 |
| 41 function didShowScriptSource(sourceFrame) | 41 function didShowScriptSource(sourceFrame) |
| 42 { | 42 { |
| 43 InspectorTest.addResult("Setting breakpoint:"); | 43 InspectorTest.addResult("Setting breakpoint:"); |
| 44 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoint.proto
type, "_addResolvedLocation", breakpointResolved); | 44 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBreakpoint
.prototype, "_addResolvedLocation", breakpointResolved); |
| 45 InspectorTest.setBreakpoint(sourceFrame, 11, "", true); | 45 InspectorTest.setBreakpoint(sourceFrame, 11, "", true); |
| 46 } | 46 } |
| 47 | 47 |
| 48 function breakpointResolved(location) | 48 function breakpointResolved(location) |
| 49 { | 49 { |
| 50 InspectorTest.waitUntilPaused(paused); | 50 InspectorTest.waitUntilPaused(paused); |
| 51 InspectorTest.addResult("Reloading page."); | 51 InspectorTest.addResult("Reloading page."); |
| 52 InspectorTest.reloadPage(onPageReloaded); | 52 InspectorTest.reloadPage(onPageReloaded); |
| 53 } | 53 } |
| 54 | 54 |
| 55 function paused() | 55 function paused() |
| 56 { | 56 { |
| 57 dumpBreakpointStorage(); | 57 dumpBreakpointStorage(); |
| 58 InspectorTest.resumeExecution(); | 58 InspectorTest.resumeExecution(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 function onPageReloaded() | 61 function onPageReloaded() |
| 62 { | 62 { |
| 63 InspectorTest.completeDebuggerTest(); | 63 InspectorTest.completeDebuggerTest(); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 </script> | 66 </script> |
| 67 </head> | 67 </head> |
| 68 <body onload="runTest()"> | 68 <body onload="runTest()"> |
| 69 <p>Tests that there is no exception in front-end on page reload when breakpoint
is set in HTML document and some dynamic scripts are loaded before the script wi
th the breakpoint is loaded.</p> | 69 <p>Tests that there is no exception in front-end on page reload when breakpoint
is set in HTML document and some dynamic scripts are loaded before the script wi
th the breakpoint is loaded.</p> |
| 70 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> | 70 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |