gecko-dev/dom/animation/test
Brian Birtles 6b03b4a52f Bug 1208938 part 3 - Update pending finishing handling; r=heycam
Animation::Tick contains special handling to cope with pending ready times
that are in the future. This was originally introduced to cope with the
situation where we are called multiple times per refresh-driver tick.

As of bug 1195180, Animation::Tick should no longer be called multiple
times per refresh driver tick. It would seem, therefore, that we no longer
need to check for a future time. However, since introducing this check, the
vsync refresh driver timer has been added which means that we can still have
a recorded time from TimeStamp::Now that is ahead of the vsync time used to
update the refresh driver. In that case, however, rather than waiting for the
next tick, we should simply clamp that pending ready time to the refresh driver
time and finish pending immediately.

This patch also updates one of the tests for reversing. With this updated
behavior we can sometimes arrive at a situation where when an Animation starts
and its ready promise resolves, its currentTime is still 0. If we call
reverse() at this point on an animation with an infinite active duration it
should throw an InvalidStateError. To avoid this situation, this test makes
sure we wait an extra frame before calling reverse().
2015-10-07 14:30:28 +09:00
..
chrome Bug 1151694 - Part 6 - A test case of Animation.isRunningOnCompositor for transition. r=bbirtles 2015-09-15 16:50:00 +02:00
css-animations Bug 1208938 part 3 - Update pending finishing handling; r=heycam 2015-10-07 14:30:28 +09:00
css-transitions Bug 1198708 - Part 7: Tests. r=birtles 2015-09-29 12:20:14 +10:00
document-timeline Bug 1159743. Stop forcing the dom.animations-api.core.enabled preference on in the test harness. r=birtles 2015-04-30 14:25:03 -04:00
mozilla Bug 1197620 - Part 2 tests that animation stop playing when its element is not displayed. r=bbirtles 2015-09-10 20:06:00 +02:00
chrome.ini Bug 1151694 - Part 5 - Additional tests for Animation.IsRunningOnCompositor. r=bbirtles 2015-09-15 16:49:00 +02:00
mochitest.ini Bug 1198708 - Part 7: Tests. r=birtles 2015-09-29 12:20:14 +10:00
testcommon.js Bug 1208938 part 3 - Update pending finishing handling; r=heycam 2015-10-07 14:30:28 +09:00