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..946174dabb562c0cec9fe7ce6ee1d544a703fb8f 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 |
@@ -42,7 +42,7 @@ function test() |
newProperty.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
newProperty.valueElement.textContent = "maroon"; |
newProperty.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
- InspectorTest.waitForStyles("inspected", step3); |
+ InspectorTest.runAfterPendingDispatches(step3); |
} |
function step3() |
@@ -56,12 +56,10 @@ function test() |
</script> |
</head> |
-<body onload="runTest()"> |
+<body onload="runTest()" id="inspected"> |
<p> |
Tests that adding a new rule works when there is a STYLE element after BODY. TIMEOUT SHOULD NOT OCCUR! <a href="https://bugs.webkit.org/show_bug.cgi?id=111299">Bug 111299</a> |
</p> |
-<div id="inspected" style="font-size: 12px">Text</div> |
- |
</body> |
</html> |