| 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/live-edit-test.js"></script> | 5 <script src="../../../http/tests/inspector/live-edit-test.js"></script> |
| 6 <script src="resources/edit-me-breakpoints.js"></script> | 6 <script src="resources/edit-me-breakpoints.js"></script> |
| 7 <script> | 7 <script> |
| 8 function loadDynamicAnonymousScript() | 8 function loadDynamicAnonymousScript() |
| 9 { | 9 { |
| 10 function testFunction() | 10 function testFunction() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 var breakpoints = breakpointManager._storage._setting.get(); | 31 var breakpoints = breakpointManager._storage._setting.get(); |
| 32 InspectorTest.addResult(" Dumping breakpoint storage"); | 32 InspectorTest.addResult(" Dumping breakpoint storage"); |
| 33 for (var i = 0; i < breakpoints.length; ++i) | 33 for (var i = 0; i < breakpoints.length; ++i) |
| 34 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s
ourceFileId) + ":" + breakpoints[i].lineNumber + ", enabled:" + breakpoints[i].e
nabled); | 34 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s
ourceFileId) + ":" + breakpoints[i].lineNumber + ", enabled:" + breakpoints[i].e
nabled); |
| 35 | 35 |
| 36 locations = breakpointManager.allBreakpointLocations(); | 36 locations = breakpointManager.allBreakpointLocations(); |
| 37 InspectorTest.addResult(" Dumping breakpoint locations"); | 37 InspectorTest.addResult(" Dumping breakpoint locations"); |
| 38 for (var i = 0; i < locations.length; ++i) { | 38 for (var i = 0; i < locations.length; ++i) { |
| 39 var uiLocation = locations[i].uiLocation; | 39 var uiLocation = locations[i].uiLocation; |
| 40 var uiSourceCode = uiLocation.uiSourceCode; | 40 var uiSourceCode = uiLocation.uiSourceCode; |
| 41 var originURL = uiSourceCode.originURL(); | 41 var url = uiSourceCode.url(); |
| 42 var lineNumber = uiLocation.lineNumber; | 42 var lineNumber = uiLocation.lineNumber; |
| 43 var project = uiSourceCode.project(); | 43 var project = uiSourceCode.project(); |
| 44 InspectorTest.addResult(" url: " + pathToFileName(originURL)
+ ", lineNumber: " + lineNumber + ", project type: " + project.type()); | 44 InspectorTest.addResult(" url: " + pathToFileName(url) + ", l
ineNumber: " + lineNumber + ", project type: " + project.type()); |
| 45 } | 45 } |
| 46 | 46 |
| 47 breakpoints = breakpointManager.allBreakpoints(); | 47 breakpoints = breakpointManager.allBreakpoints(); |
| 48 InspectorTest.addResult(" Dumping breakpoints"); | 48 InspectorTest.addResult(" Dumping breakpoints"); |
| 49 for (var i = 0; i < breakpoints.length; ++i) { | 49 for (var i = 0; i < breakpoints.length; ++i) { |
| 50 var breakpoint = breakpoints[i]; | 50 var breakpoint = breakpoints[i]; |
| 51 var uiSourceCode = breakpointManager._workspace.uiSourceCode(breakpo
int.projectId(), breakpoint.path()); | 51 var uiSourceCode = breakpointManager._workspace.uiSourceCode(breakpo
int.projectId(), breakpoint.path()); |
| 52 var lineNumber = breakpoint.lineNumber(); | 52 var lineNumber = breakpoint.lineNumber(); |
| 53 var originURL = uiSourceCode.originURL(); | 53 var url = uiSourceCode.url(); |
| 54 var project = uiSourceCode.project(); | 54 var project = uiSourceCode.project(); |
| 55 InspectorTest.addResult(" url: " + pathToFileName(originURL)
+ ", lineNumber: " + lineNumber + ", project type: " + project.type()); | 55 InspectorTest.addResult(" url: " + pathToFileName(url) + ", l
ineNumber: " + lineNumber + ", project type: " + project.type()); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 function addBreakpointSniffer(lineNumber, disabled) | 59 function addBreakpointSniffer(lineNumber, disabled) |
| 60 { | 60 { |
| 61 var prefix = this.main ? "" : "Original"; | 61 var prefix = this.main ? "" : "Original"; |
| 62 InspectorTest.addResult(" " + prefix + "TextEditor.addBreakpoint(line
Number = " + lineNumber + ", disabled = " + disabled + ")"); | 62 InspectorTest.addResult(" " + prefix + "TextEditor.addBreakpoint(line
Number = " + lineNumber + ", disabled = " + disabled + ")"); |
| 63 } | 63 } |
| 64 | 64 |
| 65 function removeBreakpointSniffer(lineNumber) | 65 function removeBreakpointSniffer(lineNumber) |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 ]); | 311 ]); |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 </script> | 314 </script> |
| 315 </head> | 315 </head> |
| 316 <body onload="runTest()"> | 316 <body onload="runTest()"> |
| 317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame
during live edit.</p> | 317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame
during live edit.</p> |
| 318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> | 318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> |
| 319 </body> | 319 </body> |
| 320 </html> | 320 </html> |
| OLD | NEW |