| 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) |
| 11 { | 11 { |
| 12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); | 12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); |
| 13 if (quiet !== undefined) | 13 if (quiet !== undefined) |
| 14 InspectorTest._quiet = quiet; | 14 InspectorTest._quiet = quiet; |
| 15 WebInspector.SourcesPanel.show(); | 15 WebInspector.viewManager.showView("sources"); |
| 16 | 16 |
| 17 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip
t", InspectorTest._pausedScript, true); | 17 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip
t", InspectorTest._pausedScript, true); |
| 18 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri
pt", InspectorTest._resumedScript, true); | 18 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri
pt", InspectorTest._resumedScript, true); |
| 19 InspectorTest.safeWrap(callback)(); | 19 InspectorTest.safeWrap(callback)(); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 InspectorTest.startDebuggerTestPromise = function(quiet) | 22 InspectorTest.startDebuggerTestPromise = function(quiet) |
| 23 { | 23 { |
| 24 var cb; | 24 var cb; |
| 25 var p = new Promise(fullfill => cb = fullfill); | 25 var p = new Promise(fullfill => cb = fullfill); |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
| 596 threadsPane._onListItemClick(listItem); | 596 threadsPane._onListItemClick(listItem); |
| 597 } | 597 } |
| 598 | 598 |
| 599 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 599 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 600 { | 600 { |
| 601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 602 } | 602 } |
| 603 | 603 |
| 604 }; | 604 }; |
| OLD | NEW |