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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.html b/third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.html
index d799d9226adccc256cf2c3a5f00886d37c7f355f..649ce5a88d366d3df6a649daffe1dbe9064bf787 100644
--- a/third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.html
+++ b/third_party/WebKit/LayoutTests/animations/animation-events-prefixed-01.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.webkitAnimationIterationCount = "infinite";
document.getElementById('box').className = 'animate';
- }, 200);
+ });
}, false);
onload = function()
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-02.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698