| OLD | NEW |
| 1 function scheduleTestFunction() | 1 function scheduleTestFunction() |
| 2 { | 2 { |
| 3 setTimeout(testFunction, 0); | 3 setTimeout(testFunction, 0); |
| 4 } | 4 } |
| 5 | 5 |
| 6 var initialize_DebuggerTest = function() { | 6 var initialize_DebuggerTest = function() { |
| 7 | 7 |
| 8 InspectorTest.preloadPanel("sources"); | 8 InspectorTest.preloadPanel("sources"); |
| 9 | 9 |
| 10 InspectorTest.startDebuggerTest = function(callback, quiet) | 10 InspectorTest.startDebuggerTest = function(callback, quiet) |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 InspectorTest.dumpJavaScriptSourceFrameBreakpoints = function(sourceFrame) | 648 InspectorTest.dumpJavaScriptSourceFrameBreakpoints = function(sourceFrame) |
| 649 { | 649 { |
| 650 var textEditor = sourceFrame._textEditor; | 650 var textEditor = sourceFrame._textEditor; |
| 651 for (var lineNumber = 0; lineNumber < textEditor.linesCount; ++lineNumber) { | 651 for (var lineNumber = 0; lineNumber < textEditor.linesCount; ++lineNumber) { |
| 652 if (!textEditor.hasLineClass(lineNumber, "cm-breakpoint")) | 652 if (!textEditor.hasLineClass(lineNumber, "cm-breakpoint")) |
| 653 continue; | 653 continue; |
| 654 var disabled = textEditor.hasLineClass(lineNumber, "cm-breakpoint-disabl
ed"); | 654 var disabled = textEditor.hasLineClass(lineNumber, "cm-breakpoint-disabl
ed"); |
| 655 var conditional = textEditor.hasLineClass(lineNumber, "cm-breakpoint-con
ditional") | 655 var conditional = textEditor.hasLineClass(lineNumber, "cm-breakpoint-con
ditional") |
| 656 InspectorTest.addResult("breakpoint at " + lineNumber + (disabled ? " di
sabled" : "") + (conditional ? " conditional" : "")); | 656 InspectorTest.addResult("breakpoint at " + lineNumber + (disabled ? " di
sabled" : "") + (conditional ? " conditional" : "")); |
| 657 } | 657 } |
| 658 var bookmarks = textEditor.bookmarks(textEditor.fullRange(), Sources.JavaScr
iptSourceFrame.BreakpointDecoration._bookmarkSymbol); |
| 659 bookmarks = bookmarks.filter(bookmark => !!bookmark.position()); |
| 660 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); |
| 661 for (var bookmark of bookmarks) { |
| 662 var position = bookmark.position(); |
| 663 var element = bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoratio
n._elementSymbolForTest]; |
| 664 var disabled = element.classList.contains("cm-inline-disabled"); |
| 665 var conditional = element.classList.contains("cm-inline-conditional"); |
| 666 InspectorTest.addResult(" inline breakpoint at (" + position.startLine
+ ", " + position.startColumn + ")" + (disabled ? " disabled" : "") + (condition
al ? " conditional" : "")); |
| 667 } |
| 668 } |
| 669 |
| 670 InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN
umber, index) |
| 671 { |
| 672 var textEditor = sourceFrame._textEditor; |
| 673 var lineLength = textEditor.line(lineNumber).length; |
| 674 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); |
| 675 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram
e.BreakpointDecoration._bookmarkSymbol); |
| 676 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); |
| 677 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element
SymbolForTest].click(); |
| 658 } | 678 } |
| 659 | 679 |
| 660 }; | 680 }; |
| OLD | NEW |