All Downloads are FREE. Search and download functionalities are using the official Maven repository.

www.reboot.components.bower_components.web-animations-js.test.js.tick.js Maven / Gradle / Ivy

There is a newer version: 0.1.20
Show newest version
suite('tick-tests', function() {
  setup(function() { webAnimations1.timeline._players = []; });

  test('players are in effect but ticking stops once forward fill is reached', function() {
    tick(90);
    var player = document.body.animate([], {duration: 1000, fill: 'forwards'});
    tick(100);
    tick(600);
    assert.equal(webAnimations1.timeline._players.length, 1);
    assert.equal(isTicking(), true);
    tick(1100);
    assert.equal(player.finished, true);
    assert.equal(webAnimations1.timeline._players.length, 1);
    assert.equal(isTicking(), false);
  });
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy