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){
|
QUnit.test("tick should pause animation on end if loop is disabled", function(assert){
|
||||||
animator.options.loop = false;
|
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
|
animator.options.loop = false;
|
||||||
animator.toggle();
|
animator.toggle();
|
||||||
|
animator.step(600);
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
assert.notEqual(animator._time, 0);
|
assert.equal(animator._time,animator.options.animationDuration);
|
||||||
done();
|
done();
|
||||||
}, 100)
|
}, 200);
|
||||||
animator.pause();
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user