mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
committed by
GitHub
parent
46d9827960
commit
f820dc144d
@@ -79,7 +79,7 @@ export function test_PlayRejectsWhenAlreadyPlayingAnimation(done) {
|
||||
if (e === 'Animation is already playing.') {
|
||||
done();
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -164,8 +164,8 @@ export function test_ChainingAnimations(done) {
|
||||
.then(() => label.animate({ translate: { x: 0, y: 0 }, duration: duration }))
|
||||
.then(() => label.animate({ scale: { x: 5, y: 5 }, duration: duration }))
|
||||
.then(() => label.animate({ scale: { x: 1, y: 1 }, duration: duration }))
|
||||
.then(() => label.animate({ rotate: { x: 90, y: 0, z: 180 }, duration: duration }))
|
||||
.then(() => label.animate({ rotate: { x: 0, y: 0, z: 0 }, duration: duration }))
|
||||
.then(() => label.animate({ rotate: 180, duration: duration }))
|
||||
.then(() => label.animate({ rotate: 0, duration: duration }))
|
||||
.then(() => {
|
||||
//console.log("Animation finished");
|
||||
// >> (hide)
|
||||
@@ -610,7 +610,7 @@ export function test_PlayPromiseIsResolvedWhenAnimationFinishes(done) {
|
||||
function onRejected(e) {
|
||||
TKUnit.assert(false, 'Animation play promise should be resolved, not rejected.');
|
||||
done(e);
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -627,7 +627,7 @@ export function test_PlayPromiseIsRejectedWhenAnimationIsCancelled(done) {
|
||||
function onRejected(e) {
|
||||
TKUnit.assert(animation.isPlaying === false, 'Animation.isPlaying should be false when animation play promise is rejected.');
|
||||
done();
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
animation.cancel();
|
||||
|
||||
Reference in New Issue
Block a user