| Index: LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
|
| diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
|
| index f41e1226cfe0b54f8d70eabb3aa13d9f4b72bd70..b234f8bbe6c7da9e734ff4fec1778e4e3143667c 100644
|
| --- a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
|
| +++ b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
|
| @@ -13,10 +13,12 @@ function addStyle()
|
| function test()
|
| {
|
| WebInspector.inspectorView.showPanel("elements");
|
| - InspectorTest.evaluateInPage("addStyle()", step0);
|
| + WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
|
| + InspectorTest.evaluateInPage("addStyle()");
|
|
|
| - function step0()
|
| + function stylesheetAdded()
|
| {
|
| + WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
|
| InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
|
| }
|
|
|
|
|