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

Unified Diff: third_party/WebKit/LayoutTests/animations/change-keyframes-name.html

Issue 2411163003: CSS Animations: Reduce usage of setTimeout in Layout tests (Closed)
Patch Set: extra tests Created 4 years, 2 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: third_party/WebKit/LayoutTests/animations/change-keyframes-name.html
diff --git a/third_party/WebKit/LayoutTests/animations/change-keyframes-name.html b/third_party/WebKit/LayoutTests/animations/change-keyframes-name.html
index b181aad9cc95b746042b2c142a63e00095f89e3a..909f7b16a1436c6ba4db90436e158f362d9cd956 100644
--- a/third_party/WebKit/LayoutTests/animations/change-keyframes-name.html
+++ b/third_party/WebKit/LayoutTests/animations/change-keyframes-name.html
@@ -61,7 +61,9 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
- setTimeout(change, 200);
+ requestAnimationFrame(() => {
+ requestAnimationFrame(change);
+ });
}
</script>

Powered by Google App Engine
This is Rietveld 408576698