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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.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-03.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html b/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
index eead95cf45c69d8148827633752b3f8f549e86f8..3c6e6806304c4d2500cfc930e2491336918e0cf4 100644
--- a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
+++ b/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
@@ -52,10 +52,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