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

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

Issue 2927573004: DevTools: migrate StylesSidebarPane to shadow (Closed)
Patch Set: with similarity 10 Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-2/filter-matched-styles-hides-separators.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
index 91986c7b0dd4d962529588bfffdff09327ac288a..02dd2e8a1eabb2802e4b6cf4b1699354c575d7e8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
@@ -930,7 +930,7 @@ InspectorTest.addNewRuleInStyleSheet = function(styleSheetHeader, selector, call
InspectorTest.addNewRule = function(selector, callback)
{
// Click "Add new rule".
- document.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".largeicon-add").click();
+ UI.panels.elements._stylesWidget.contentElement.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".largeicon-add").click();
InspectorTest.addSniffer(Elements.StylesSidebarPane.prototype, "_addBlankSection", onBlankSection.bind(null, selector, callback));
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-2/filter-matched-styles-hides-separators.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698