| 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)
|
|
|