Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57057857 authored by Daniel Norman's avatar Daniel Norman
Browse files

Update MenuViewLayerTest #showingImeInsetsChange_overlapOnIme_menuShownAboveIme.

Extracted from change Ic259db5d2612737aada2dd0440efce661754677b
to unblock SysUI presubmit ASAP.

Bug: 306161493
Change-Id: I0ee9154b581053355b7418f486af9a54c276faa7
parent 9b8b80de
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -222,14 +222,14 @@ public class MenuViewLayerTest extends SysuiTestCase {

    @Test
    public void showingImeInsetsChange_overlapOnIme_menuShownAboveIme() {
        final float menuTop = IME_TOP + 100;
        mMenuAnimationController.moveAndPersistPosition(new PointF(0, menuTop));
        mMenuAnimationController.moveAndPersistPosition(new PointF(0, IME_TOP + 100));
        final PointF beforePosition = mMenuView.getMenuPosition();

        dispatchShowingImeInsets();

        final float menuBottom = mMenuView.getTranslationY() + mMenuView.getMenuHeight();
        assertThat(mMenuView.getTranslationX()).isEqualTo(0);
        assertThat(menuBottom).isLessThan(IME_TOP);
        assertThat(mMenuView.getTranslationX()).isEqualTo(beforePosition.x);
        assertThat(menuBottom).isLessThan(beforePosition.y);
    }

    @Test