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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.waitUntilPausedAndDumpStackAndResume = function(callback, options) | 174 InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options) |
175 { | 175 { |
176 InspectorTest.waitUntilPaused(paused); | 176 InspectorTest.waitUntilPaused(paused); |
177 InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_upda
teStatusMessage", setStatus); | 177 InspectorTest.addSniffer(WebInspector.SourcesPanel.prototype, "_updateDebugg
erButtonsAndStatus", setStatus); |
178 | 178 |
179 var caption; | 179 var caption; |
180 var callFrames; | 180 var callFrames; |
181 var asyncStackTrace; | 181 var asyncStackTrace; |
182 | 182 |
183 function setStatus() | 183 function setStatus() |
184 { | 184 { |
185 caption = this.contentElement.lastChild.deepTextContent(); | 185 var statusElement = this.element.querySelector(".paused-message"); |
| 186 caption = statusElement.deepTextContent(); |
186 if (callFrames) | 187 if (callFrames) |
187 step1(); | 188 step1(); |
188 } | 189 } |
189 | 190 |
190 function paused(frames, reason, breakpointIds, async) | 191 function paused(frames, reason, breakpointIds, async) |
191 { | 192 { |
192 callFrames = frames; | 193 callFrames = frames; |
193 asyncStackTrace = async; | 194 asyncStackTrace = async; |
194 if (typeof caption === "string") | 195 if (typeof caption === "string") |
195 step1(); | 196 step1(); |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 596 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
596 threadsPane._onListItemClick(listItem); | 597 threadsPane._onListItemClick(listItem); |
597 } | 598 } |
598 | 599 |
599 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 600 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
600 { | 601 { |
601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 602 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
602 } | 603 } |
603 | 604 |
604 }; | 605 }; |
OLD | NEW |