Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html

Issue 201363002: DevTools: defer styles delta calculation to until the end of the task. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698