de-asyncs another test
This commit is contained in:
parent
5be36ca15a
commit
b3c8cd76c6
@ -73,13 +73,10 @@ test("tick should set time to zero if steps are bigger than range", function(ass
|
||||
});
|
||||
|
||||
test("tick should pause animation on end if loop is disabled", function(assert){
|
||||
var done = assert.async();
|
||||
var animator = new torque.Animator(function(){}, {steps: 500, animationDuration: 10});
|
||||
animator.options.loop = false;
|
||||
animator.toggle();
|
||||
animator.step(600);
|
||||
setTimeout(function(){
|
||||
assert.equal(animator._time,animator.options.animationDuration);
|
||||
done();
|
||||
}, 200);
|
||||
assert.equal(animator._time,animator.options.animationDuration);
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user