| Index: LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
|
| diff --git a/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html b/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
|
| index af345ebcd52515514cb1bf664bbfbf93a9e3b502..d310bd44157e684e01d0876f0610cb520bf06b1e 100644
|
| --- a/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
|
| +++ b/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
|
| @@ -26,9 +26,12 @@ function test()
|
|
|
| function addNewRuleAndSelectNode(nodeId, next)
|
| {
|
| - document.getElementById("add-style-button-test-id").click();
|
| - var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
|
| - InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
|
| + InspectorTest.addNewRule(null, ruleAdded);
|
| +
|
| + function ruleAdded()
|
| + {
|
| + InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
|
| + }
|
| }
|
| }
|
|
|
|
|