mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fix to
onFinish callback flow
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user