Bug 1424949 - Wait for one more frame before checking animation start time to avoid the situation that the animation just begins at the time when it's ready. r=birtles

MozReview-Commit-ID: 6bNfl10TiT6

--HG--
extra : rebase_source : 095fd007710f8a7af13e2e7331f7326554f32cb7
This commit is contained in:
Hiroyuki Ikezoe 2017-12-15 01:36:04 +09:00
parent c9071bce5c
commit 958d16759c

View File

@ -100,7 +100,7 @@ promise_test(function(t) {
var secondAnimation = div.getAnimations()[1];
// Wait before continuing so we can compare start times
return secondAnimation.ready.then(waitForFrame).then(function() {
return secondAnimation.ready.then(waitForNextFrame).then(function() {
// Trim list of animations
div.style.animationName = 'anim1';
var animations = div.getAnimations();