fix to onFinish callback flow

This commit is contained in:
lavrton
2015-03-10 19:16:13 +07:00
parent 4e23aa89e9
commit 4334b2a087
3 changed files with 20 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ suite('Tween', function() {
tween.play();
});
test('transitionTo method', function(done) {
test('to method', function(done) {
var stage = addStage();
var layer = new Konva.Layer();
@@ -197,5 +197,17 @@ suite('Tween', function() {
});
});
test('to method simple usage', function(done) {
var stage = addStage();
stage.to({
x : 10,
duration : 0.001
});
setTimeout(function() {
done();
}, 50);
});
});