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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.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/animation-events-unprefixed-02.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html b/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html
index b1d4dfb02ccee9c19e972ebfddb94ba046dcd40e..47bf7e793a725d7e88bc6a75d4528cb503ae367c 100644
--- a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html
+++ b/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html
@@ -47,10 +47,10 @@
endEventReceived = true;
document.getElementById('box').className = '';
// Launch again the animation to catch the animation iteration events this time.
- setTimeout(function () {
+ requestAnimationFrame(function () {
document.getElementById('box').style.animationIterationCount = "infinite";
document.getElementById('box').className = 'animate';
- }, 200);
+ });
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698