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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 for (var bookmark of bookmarks) { | 713 for (var bookmark of bookmarks) { |
714 var position = bookmark.position(); | 714 var position = bookmark.position(); |
715 var element = bookmark[Sources.JavaScriptSourceFrame.BreakpointDecor
ation._elementSymbolForTest]; | 715 var element = bookmark[Sources.JavaScriptSourceFrame.BreakpointDecor
ation._elementSymbolForTest]; |
716 var disabled = element.classList.contains("cm-inline-disabled"); | 716 var disabled = element.classList.contains("cm-inline-disabled"); |
717 var conditional = element.classList.contains("cm-inline-conditional"
); | 717 var conditional = element.classList.contains("cm-inline-conditional"
); |
718 InspectorTest.addResult(" inline breakpoint at (" + position.startL
ine + ", " + position.startColumn + ")" + (disabled ? " disabled" : "") + (condi
tional ? " conditional" : "")); | 718 InspectorTest.addResult(" inline breakpoint at (" + position.startL
ine + ", " + position.startColumn + ")" + (disabled ? " disabled" : "") + (condi
tional ? " conditional" : "")); |
719 } | 719 } |
720 } | 720 } |
721 } | 721 } |
722 | 722 |
723 InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN
umber, index) | 723 InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN
umber, index, next) |
724 { | 724 { |
725 var textEditor = sourceFrame._textEditor; | 725 var textEditor = sourceFrame._textEditor; |
726 var lineLength = textEditor.line(lineNumber).length; | 726 var lineLength = textEditor.line(lineNumber).length; |
727 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); | 727 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); |
728 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram
e.BreakpointDecoration._bookmarkSymbol); | 728 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram
e.BreakpointDecoration._bookmarkSymbol); |
729 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); | 729 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); |
730 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element
SymbolForTest].click(); | 730 var bookmark = bookmarks[index]; |
| 731 if (bookmark) { |
| 732 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb
olForTest].click(); |
| 733 } else { |
| 734 InspectorTest.addResult(`Could not click on Javascript breakpoint - line
Number: ${lineNumber}, index: ${index}`); |
| 735 next(); |
| 736 } |
731 } | 737 } |
732 | 738 |
733 }; | 739 }; |
OLD | NEW |