From 388ef63f4db8b78a457f474008ab7b3489e88a5e Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Tue, 4 Aug 2015 19:03:56 +0200 Subject: [PATCH] fixes loop test --- test/animator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/animator.js b/test/animator.js index 293051b..5b702a2 100644 --- a/test/animator.js +++ b/test/animator.js @@ -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); });