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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 } | 573 } |
574 } | 574 } |
575 | 575 |
576 InspectorTest.selectThread = function(target) | 576 InspectorTest.selectThread = function(target) |
577 { | 577 { |
578 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads; | 578 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads; |
579 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 579 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
580 threadsPane._onListItemClick(listItem); | 580 threadsPane._onListItemClick(listItem); |
581 } | 581 } |
582 | 582 |
| 583 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 584 { |
| 585 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 586 } |
| 587 |
583 }; | 588 }; |
OLD | NEW |