Index: LayoutTests/inspector/elements/styles/styles-add-new-rule.html |
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule.html |
index bae4a9438c2fd342e2243fdcf90414f611c9acf9..856750b3821e3de6c727d703c47860ca483711d7 100644 |
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html |
+++ b/LayoutTests/inspector/elements/styles/styles-add-new-rule.html |
@@ -22,11 +22,7 @@ function test() |
function step1() |
{ |
// 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 = "foo, " + section._selectorElement.textContent + ", bar"; |
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
- InspectorTest.runAfterPendingDispatches(step2); |
+ InspectorTest.addNewRule("foo, div#inspected, bar", step2); |
} |
function step2() |