mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
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:
parent
c9071bce5c
commit
958d16759c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user