| 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 function contextCreated() | 641 function contextCreated() |
| 642 { | 642 { |
| 643 target.runtimeModel.removeEventListener(SDK.RuntimeModel.Events.Executio
nContextCreated, contextCreated); | 643 target.runtimeModel.removeEventListener(SDK.RuntimeModel.Events.Executio
nContextCreated, contextCreated); |
| 644 callback(target.runtimeModel.executionContexts()[0]); | 644 callback(target.runtimeModel.executionContexts()[0]); |
| 645 } | 645 } |
| 646 } | 646 } |
| 647 | 647 |
| 648 InspectorTest.selectThread = function(target) | 648 InspectorTest.selectThread = function(target) |
| 649 { | 649 { |
| 650 var threadsPane = self.runtime.sharedInstance(Sources.ThreadsSidebarPane); | 650 var threadsPane = self.runtime.sharedInstance(Sources.ThreadsSidebarPane); |
| 651 var listItem = threadsPane._listItemForTarget(target); | 651 var listItem = threadsPane._targetToListItem.get(target); |
| 652 threadsPane._onListItemClick(listItem); | 652 threadsPane._onListItemClick(listItem, target); |
| 653 } | 653 } |
| 654 | 654 |
| 655 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 655 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 656 { | 656 { |
| 657 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 657 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 658 } | 658 } |
| 659 | 659 |
| 660 InspectorTest.prepareSourceFrameForBreakpointTest = function(sourceFrame) | 660 InspectorTest.prepareSourceFrameForBreakpointTest = function(sourceFrame) |
| 661 { | 661 { |
| 662 var symbol = Symbol('waitedDecorations'); | 662 var symbol = Symbol('waitedDecorations'); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 { | 722 { |
| 723 var textEditor = sourceFrame._textEditor; | 723 var textEditor = sourceFrame._textEditor; |
| 724 var lineLength = textEditor.line(lineNumber).length; | 724 var lineLength = textEditor.line(lineNumber).length; |
| 725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); | 725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); |
| 726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram
e.BreakpointDecoration._bookmarkSymbol); | 726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram
e.BreakpointDecoration._bookmarkSymbol); |
| 727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); | 727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn -
bookmark2.position().startColumn); |
| 728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element
SymbolForTest].click(); | 728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element
SymbolForTest].click(); |
| 729 } | 729 } |
| 730 | 730 |
| 731 }; | 731 }; |
| OLD | NEW |