Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment