mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Sprite test improve
This commit is contained in:
parent
627040990b
commit
0a664e009c
@ -117,8 +117,8 @@ suite('Sprite', function() {
|
||||
setTimeout(function(){
|
||||
sprite.frameRate(52);
|
||||
assert.equal(sprite.anim.isRunning(), true);
|
||||
// for this moment should thick 4 times
|
||||
assert.equal(sprite.frameIndex(), 4);
|
||||
// for this moment should tick more than 2 times
|
||||
assert.equal(sprite.frameIndex() > 2, true);
|
||||
done();
|
||||
}, 68);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user