Index: LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
index e6f25e46604ab9a8276bb69a115f87b239b842d7..e5c0ca57eb91b6656a6d161dc33df04457601412 100644 |
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
+++ b/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
@@ -40,8 +40,12 @@ function test() |
function step3() |
{ |
// Click "Add new rule". |
- document.getElementById("add-style-button-test-id").click(); |
- InspectorTest.selectNodeAndWaitForStyles("inspected", step4); |
+ InspectorTest.addNewRule(null, onRuleAdded); |
+ |
+ function onRuleAdded() |
+ { |
+ InspectorTest.selectNodeAndWaitForStyles("inspected", step4); |
+ } |
} |
function step4() |