de-asyncs another test

This commit is contained in:
Francisco Dans 2015-08-05 12:55:34 +02:00
parent 5be36ca15a
commit b3c8cd76c6

View File

@ -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);
});