From bdc3aa8eaee9f5909e0c5a712e3b7c1516eaef4e Mon Sep 17 00:00:00 2001 From: Sam Thorogood Date: Tue, 24 Feb 2015 17:17:45 +1100 Subject: [PATCH] test fill: forwards being returned via getAnimationPlayers --- test/js/timeline.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/js/timeline.js b/test/js/timeline.js index fa5947c..7aa1ad1 100644 --- a/test/js/timeline.js +++ b/test/js/timeline.js @@ -33,4 +33,13 @@ suite('timeline-tests', function() { player.cancel(); assert.equal(document.timeline.getAnimationPlayers().length, 0); }); + + test('getAnimationPlayers returns fill forwards animation', function() { + tick(90); + var player = document.body.animate([], {duration: 100, fill: 'forwards'}); + tick(300); + assert.equal(document.timeline.getAnimationPlayers().length, 1); + tick(450); + assert.equal(document.timeline.getAnimationPlayers().length, 1); + }); });