Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js

Issue 2389883003: DevTools: hoist debugger paused reason to top (Closed)
Patch Set: Widget >> custom element with shadow Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
index f375a9ee88db0304e46365570bfef507ad06f0ef..98c8dc7343c628edc3ad8ec62cb639ca5752473d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
@@ -174,7 +174,7 @@ InspectorTest.resumeExecution = function(callback)
InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options)
{
InspectorTest.waitUntilPaused(paused);
- InspectorTest.addSniffer(WebInspector.CallStackSidebarPane.prototype, "_updateStatusMessage", setStatus);
+ InspectorTest.addSniffer(WebInspector.SourcesPanel.prototype, "_updateDebuggerButtonsAndStatus", setStatus);
var caption;
var callFrames;
@@ -182,7 +182,8 @@ InspectorTest.waitUntilPausedAndDumpStackAndResume = function(callback, options)
function setStatus()
{
- caption = this.contentElement.lastChild.deepTextContent();
+ var statusElement = this.element.querySelector("[is=paused-message]");
+ caption = statusElement.deepTextContent();
if (callFrames)
step1();
}

Powered by Google App Engine
This is Rietveld 408576698