mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
web animation updates
This commit is contained in:
16
scripts/vendor/web-animations-js/test/js/tick.js
vendored
Executable file
16
scripts/vendor/web-animations-js/test/js/tick.js
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
suite('tick-tests', function() {
|
||||
setup(function() { webAnimations1.timeline._animations = []; });
|
||||
|
||||
test('animations are in effect but ticking stops once forward fill is reached', function() {
|
||||
tick(90);
|
||||
var animation = document.body.animate([], {duration: 1000, fill: 'forwards'});
|
||||
tick(100);
|
||||
tick(600);
|
||||
assert.equal(webAnimations1.timeline._animations.length, 1);
|
||||
assert.equal(isTicking(), true);
|
||||
tick(1100);
|
||||
assert.equal(animation.finished, true);
|
||||
assert.equal(webAnimations1.timeline._animations.length, 1);
|
||||
assert.equal(isTicking(), false);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user