mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
test: disabled safe area check for background change test (#10665)
This commit is contained in:

committed by
GitHub

parent
5506e67fba
commit
accf841f13
@ -75,17 +75,22 @@ export function testBackgroundInternalChangedOnceOnResize() {
|
|||||||
layout.requestLayout();
|
layout.requestLayout();
|
||||||
layout.layout(0, 0, 200, 200);
|
layout.layout(0, 0, 200, 200);
|
||||||
|
|
||||||
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is layed-out on 0 0 200 200.');
|
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.requestLayout();
|
||||||
layout.layout(50, 50, 250, 250);
|
layout.layout(50, 50, 250, 250);
|
||||||
|
|
||||||
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is layed-out from 0 0 200 200 to 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.requestLayout();
|
||||||
layout.layout(0, 0, 250, 250);
|
layout.layout(0, 0, 250, 250);
|
||||||
|
|
||||||
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is layed-out from 50 50 250 250 to 0 0 250 250.');
|
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out from 50 50 250 250 to 0 0 250 250.');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function test_automation_text_set_to_native() {
|
export function test_automation_text_set_to_native() {
|
||||||
|
@ -15,8 +15,8 @@ const spawned_process = spawn(
|
|||||||
"npx",
|
"npx",
|
||||||
[
|
[
|
||||||
"nx",
|
"nx",
|
||||||
"run",
|
"debug",
|
||||||
`apps-automated:debug:${platform}`,
|
`apps-automated ${platform}`,
|
||||||
// "--log=trace",
|
// "--log=trace",
|
||||||
// `--flags="--log=trace"`,
|
// `--flags="--log=trace"`,
|
||||||
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
||||||
|
Reference in New Issue
Block a user