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

Commit 116560a4 authored by Daniel Norman's avatar Daniel Norman Committed by Android (Google) Code Review
Browse files

Merge "Update MenuViewLayerTest #showingImeInsetsChange_overlapOnIme_menuShownAboveIme." into main

parents 45922e4f 57057857
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