@@ -93,27 +93,13 @@ export class SafeAreaTests extends testModule.UITest<any> {
9393 equal ( insets . top , topInset , `${ layout } .topInset - actual:${ insets . top } ; expected: ${ topInset } ` )
9494 }
9595
96- private layout_insets_top_action_bar_flat_test ( layout : view . View ) {
97- const insets = layout . getSafeAreaInsets ( ) ;
98- equal ( insets . top , 0 , `${ layout } .topInset - actual:${ insets . top } ; expected: ${ 0 } ` )
99- }
100-
10196 private layout_in_full_screen_test ( layout : view . View , pageOptions ?: helper . PageOptions ) {
102- let expectedTop = 0 ;
103- if ( pageOptions && ( pageOptions . actionBarFlat ) ) {
104- const app = iosUtils . getter ( UIApplication , UIApplication . sharedApplication ) ;
105- const statusBarHeight = round ( dipToDp ( app . statusBarFrame . size . height ) ) ;
106- const actionBarHeight = round ( dipToDp ( layout . page . actionBar . nativeViewProtected . frame . size . height ) ) ;
107-
108- expectedTop = statusBarHeight + actionBarHeight ;
109- }
110-
11197 const l = left ( layout ) ;
11298 const t = top ( layout ) ;
11399 const r = right ( layout ) ;
114100 const b = bottom ( layout ) ;
115101 equal ( l , 0 , `${ layout } .left - actual:${ l } ; expected: ${ 0 } ` ) ;
116- equal ( t , expectedTop , `${ layout } .top - actual:${ t } ; expected: ${ expectedTop } ` ) ;
102+ equal ( t , 0 , `${ layout } .top - actual:${ t } ; expected: ${ 0 } ` ) ;
117103 equal ( r , platform . screen . mainScreen . widthPixels , `${ layout } .right - actual:${ r } ; expected: ${ platform . screen . mainScreen . widthPixels } ` ) ;
118104 equal ( b , platform . screen . mainScreen . heightPixels , `${ layout } .bottom - actual:${ b } ; expected: ${ platform . screen . mainScreen . heightPixels } ` ) ;
119105 }
@@ -193,7 +179,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
193179 this . getViews ( snippet ) ,
194180 this . noop ,
195181 ( { root } ) => {
196- this . layout_insets_top_action_bar_flat_test ( root ) ;
182+ this . layout_insets_top_action_bar_test ( root ) ;
197183 } ,
198184 { actionBarFlat : true }
199185 ) ;
@@ -391,7 +377,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
391377 this . getViews ( snippet ) ,
392378 this . noop ,
393379 ( { root } ) => {
394- this . layout_insets_top_action_bar_flat_test ( root ) ;
380+ this . layout_insets_top_action_bar_test ( root ) ;
395381 } ,
396382 { actionBarFlat : true }
397383 ) ;
@@ -609,7 +595,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
609595 this . getViews ( snippet ) ,
610596 this . noop ,
611597 ( { root } ) => {
612- this . layout_insets_top_action_bar_flat_test ( root ) ;
598+ this . layout_insets_top_action_bar_test ( root ) ;
613599 } ,
614600 { actionBarFlat : true }
615601 ) ;
@@ -903,7 +889,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
903889 this . getViews ( snippet ) ,
904890 this . noop ,
905891 ( { root } ) => {
906- this . layout_insets_top_action_bar_flat_test ( root ) ;
892+ this . layout_insets_top_action_bar_test ( root ) ;
907893 } ,
908894 { actionBarFlat : true }
909895 ) ;
@@ -1140,7 +1126,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
11401126 this . getViews ( snippet ) ,
11411127 this . noop ,
11421128 ( { root } ) => {
1143- this . layout_insets_top_action_bar_flat_test ( root ) ;
1129+ this . layout_insets_top_action_bar_test ( root ) ;
11441130 } ,
11451131 { actionBarFlat : true }
11461132 ) ;
@@ -1354,7 +1340,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
13541340 this . getViews ( snippet ) ,
13551341 this . noop ,
13561342 ( { root } ) => {
1357- this . layout_insets_top_action_bar_flat_test ( root ) ;
1343+ this . layout_insets_top_action_bar_test ( root ) ;
13581344 } ,
13591345 { actionBarFlat : true }
13601346 ) ;
0 commit comments