mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge remote-tracking branch 'origin/main' into refactor/circular-deps
This commit is contained in:
@@ -159,8 +159,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)
|
||||
|
||||
@@ -109,16 +109,11 @@ export function testBackgroundInternalChangedOnceOnResize() {
|
||||
|
||||
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out on 0 0 200 200.');
|
||||
|
||||
// Ignore safe area as it may result in re-calculating view frame, thus trigger a size change regardless
|
||||
layout.iosIgnoreSafeArea = true;
|
||||
|
||||
layout.requestLayout();
|
||||
layout.layout(50, 50, 250, 250);
|
||||
|
||||
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is laid-out from 0 0 200 200 to 50 50 250 250.');
|
||||
|
||||
layout.iosIgnoreSafeArea = false;
|
||||
|
||||
layout.requestLayout();
|
||||
layout.layout(0, 0, 250, 250);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user