| OLD | NEW |
| 1 suite('tick-tests', function() { | 1 suite('tick-tests', function() { |
| 2 setup(function() { webAnimationsMinifill.timeline._players = []; }); | 2 setup(function() { webAnimations1.timeline._players = []; }); |
| 3 | 3 |
| 4 test('players are in effect but ticking stops once forward fill is reached', f
unction() { | 4 test('players are in effect but ticking stops once forward fill is reached', f
unction() { |
| 5 tick(90); | 5 tick(90); |
| 6 var player = document.body.animate([], {duration: 1000, fill: 'forwards'}); | 6 var player = document.body.animate([], {duration: 1000, fill: 'forwards'}); |
| 7 tick(100); | 7 tick(100); |
| 8 tick(600); | 8 tick(600); |
| 9 assert.equal(webAnimationsMinifill.timeline._players.length, 1); | 9 assert.equal(webAnimations1.timeline._players.length, 1); |
| 10 assert.equal(isTicking(), true); | 10 assert.equal(isTicking(), true); |
| 11 tick(1100); | 11 tick(1100); |
| 12 assert.equal(player.finished, true); | 12 assert.equal(player.finished, true); |
| 13 assert.equal(webAnimationsMinifill.timeline._players.length, 1); | 13 assert.equal(webAnimations1.timeline._players.length, 1); |
| 14 assert.equal(isTicking(), false); | 14 assert.equal(isTicking(), false); |
| 15 }); | 15 }); |
| 16 }); | 16 }); |
| OLD | NEW |