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

Unified Diff: LayoutTests/inspector/elements/styles/undo-add-new-rule.html

Issue 177963004: DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: LayoutTests/inspector/elements/styles/undo-add-new-rule.html
diff --git a/LayoutTests/inspector/elements/styles/undo-add-new-rule.html b/LayoutTests/inspector/elements/styles/undo-add-new-rule.html
index 1be35ac10619373e032da40dea537e9ecf4a8d31..1f1dbec9d92a81b810ad399c023c4d9d6d1c6a17 100644
--- a/LayoutTests/inspector/elements/styles/undo-add-new-rule.html
+++ b/LayoutTests/inspector/elements/styles/undo-add-new-rule.html
@@ -61,12 +61,12 @@ function test()
function addNewRuleAndSelectNode(nodeId, next)
{
- // Click "Add new rule".
- document.getElementById("add-style-button-test-id").click();
- var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
- section._selectorElement.textContent = "div.foo";
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
+ function selectNode()
+ {
+ InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
+ }
+
+ InspectorTest.addNewRule("div.foo", selectNode);
}
function printStyleSheetAndCall(next)

Powered by Google App Engine
This is Rietveld 408576698