fixes loop test
This commit is contained in:
parent
66de9f9c49
commit
388ef63f4d
@ -72,12 +72,12 @@ asyncTest("tick should set time to zero if steps are bigger than range", functio
|
||||
});
|
||||
|
||||
QUnit.test("tick should pause animation on end if loop is disabled", function(assert){
|
||||
animator.options.loop = false;
|
||||
var done = assert.async();
|
||||
animator.options.loop = false;
|
||||
animator.toggle();
|
||||
animator.step(600);
|
||||
setTimeout(function(){
|
||||
assert.notEqual(animator._time, 0);
|
||||
assert.equal(animator._time,animator.options.animationDuration);
|
||||
done();
|
||||
}, 100)
|
||||
animator.pause();
|
||||
}, 200);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user