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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html

Issue 2658723005: DevTools: remove deprecated shadow dom selectors from inspector LayoutTests (Closed)
Patch Set: consistent quotes Created 3 years, 11 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/inspector/console/console-custom-formatters.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html b/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html
index 19e2adc9cb56a1c71814071bad569613c96b7fb8..5dbce49173f050861f7d6572bf984f11d62c333d 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.html
@@ -142,7 +142,8 @@ function test()
var viewMessages = consoleView._visibleViewMessages;
for (var i = 0; i < viewMessages.length; ++i) {
var uiMessage = viewMessages[i];
- var customElement = uiMessage.contentElement().querySelector("span /deep/ .custom-expandable-section-header");
+ var shadowRoot = uiMessage.contentElement().querySelector(".console-message-text *").shadowRoot;
+ var customElement = shadowRoot ? shadowRoot.querySelector(".custom-expandable-section-header") : null;
if (customElement)
customElement.click();
}

Powered by Google App Engine
This is Rietveld 408576698