Sprite test improve

This commit is contained in:
Лаврёнов Антон 2014-02-25 00:54:20 +08:00
parent 627040990b
commit 0a664e009c

View File

@ -117,8 +117,8 @@ suite('Sprite', function() {
setTimeout(function(){ setTimeout(function(){
sprite.frameRate(52); sprite.frameRate(52);
assert.equal(sprite.anim.isRunning(), true); assert.equal(sprite.anim.isRunning(), true);
// for this moment should thick 4 times // for this moment should tick more than 2 times
assert.equal(sprite.frameIndex(), 4); assert.equal(sprite.frameIndex() > 2, true);
done(); done();
}, 68); }, 68);