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

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

Issue 2356423002: [DevTools] Turn WebInspector.Panel into a web component.
Patch Set: partial fixes Created 4 years, 3 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/console/console-copy-treeoutline.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 dd614cb20b3c3006b220eb193dec39fe61cea16e..4515bd07619bfc2867771c7dfc82bf9b357a334c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
@@ -940,7 +940,7 @@ InspectorTest.addNewRuleInStyleSheet = function(styleSheetHeader, selector, call
InspectorTest.addNewRule = function(selector, callback)
{
// Click "Add new rule".
- document.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".add-toolbar-item").click();
+ WebInspector.ElementsPanel.instance()._stylesSidebarToolbar.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".add-toolbar-item").click();
InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_addBlankSection", onBlankSection.bind(null, selector, callback));
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-copy-treeoutline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698