| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 InspectorTest._waitUntilResumedCallback = callback; | 164 InspectorTest._waitUntilResumedCallback = callback; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 InspectorTest.resumeExecution = function(callback) | 167 InspectorTest.resumeExecution = function(callback) |
| 168 { | 168 { |
| 169 if (WebInspector.panels.sources.paused()) | 169 if (WebInspector.panels.sources.paused()) |
| 170 WebInspector.panels.sources._togglePause(); | 170 WebInspector.panels.sources._togglePause(); |
| 171 InspectorTest.waitUntilResumed(callback); | 171 InspectorTest.waitUntilResumed(callback); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 InspectorTest.assertNotPaused = function() |
| 175 { |
| 176 InspectorTest.assertEquals(false, WebInspector.panels.sources.paused(), "Ass
ert execution is not paused"); |
| 177 }; |
| 178 |
| 174 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) | 179 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) |
| 175 { | 180 { |
| 176 InspectorTest.waitUntilPaused(paused); | 181 InspectorTest.waitUntilPaused(paused); |
| 177 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_upda
teStatusMessage", setStatus); | 182 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_upda
teStatusMessage", setStatus); |
| 178 | 183 |
| 179 var caption; | 184 var caption; |
| 180 var callFrames; | 185 var callFrames; |
| 181 var asyncStackTrace; | 186 var asyncStackTrace; |
| 182 | 187 |
| 183 function setStatus() | 188 function setStatus() |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 592 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
| 588 threadsPane._onListItemClick(listItem); | 593 threadsPane._onListItemClick(listItem); |
| 589 } | 594 } |
| 590 | 595 |
| 591 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 596 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 592 { | 597 { |
| 593 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 598 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 594 } | 599 } |
| 595 | 600 |
| 596 }; | 601 }; |
| OLD | NEW |