@@ -75,17 +75,22 @@ export function testBackgroundInternalChangedOnceOnResize() {
7575 layout . requestLayout ( ) ;
7676 layout . layout ( 0 , 0 , 200 , 200 ) ;
7777
78- TKUnit . assertEqual ( trackCount ( ) , 1 , 'Expected background to be re-applied at most once when the view is layed-out on 0 0 200 200.' ) ;
78+ TKUnit . assertEqual ( trackCount ( ) , 1 , 'Expected background to be re-applied at most once when the view is laid-out on 0 0 200 200.' ) ;
79+
80+ // Ignore safe area as it may result in re-calculating view frame, thus trigger a size change regardless
81+ layout . iosIgnoreSafeArea = true ;
7982
8083 layout . requestLayout ( ) ;
8184 layout . layout ( 50 , 50 , 250 , 250 ) ;
8285
83- TKUnit . assertEqual ( trackCount ( ) , 0 , 'Expected background to NOT change when view is layed-out from 0 0 200 200 to 50 50 250 250.' ) ;
86+ TKUnit . assertEqual ( trackCount ( ) , 0 , 'Expected background to NOT change when view is laid-out from 0 0 200 200 to 50 50 250 250.' ) ;
87+
88+ layout . iosIgnoreSafeArea = false ;
8489
8590 layout . requestLayout ( ) ;
8691 layout . layout ( 0 , 0 , 250 , 250 ) ;
8792
88- 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.' ) ;
93+ 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.' ) ;
8994}
9095
9196export function test_automation_text_set_to_native ( ) {
0 commit comments