|
@@ -377,6 +377,16 @@ public class BottomTabsControllerTest extends BaseTest {
|
377
|
377
|
assertThat(stackChild.getTopInset()).isEqualTo(StatusBarUtils.getStatusBarHeight(activity));
|
378
|
378
|
}
|
379
|
379
|
|
|
380
|
+ @Test
|
|
381
|
+ public void getBottomInset_defaultOptionsAreTakenIntoAccount() {
|
|
382
|
+ Options defaultOptions = new Options();
|
|
383
|
+ defaultOptions.bottomTabsOptions.visible = new Bool(false);
|
|
384
|
+
|
|
385
|
+ assertThat(uut.getBottomInset(child1)).isEqualTo(bottomTabs.getHeight());
|
|
386
|
+ uut.setDefaultOptions(defaultOptions);
|
|
387
|
+ assertThat(uut.getBottomInset(child1)).isZero();
|
|
388
|
+ }
|
|
389
|
+
|
380
|
390
|
@Test
|
381
|
391
|
public void destroy() {
|
382
|
392
|
uut.destroy();
|