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

Commit 36f5b6e5 authored by Chris Li's avatar Chris Li Committed by Android (Google) Code Review
Browse files

Merge "Fix DisplayAreaGroupTest" into main

parents 54e996bb 8e8a1b87
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -114,8 +114,9 @@ public class DisplayAreaGroupTest extends WindowTestsBase {

    @Test
    public void testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot() {
        mDisplayContent.setBounds(0, 0, 600, 900);
        mDisplayContent.updateOrientation();
        // Rotate the display to portrait.
        final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation();
        displayRotation.setRotation(displayRotation.getPortraitRotation());
        mDisplayContent.sendNewConfiguration();

        // DAG fills Display
@@ -128,7 +129,7 @@ public class DisplayAreaGroupTest extends WindowTestsBase {
        assertThat(mDisplayAreaGroup.getConfiguration().orientation)
                .isEqualTo(ORIENTATION_LANDSCAPE);

        // DisplayAreaGroup is portriat, same as Display
        // DisplayAreaGroup is portrait, same as Display
        mDisplayAreaGroup.setBounds(0, 0, 300, 450);

        assertThat(mDisplayAreaGroup.getConfiguration().orientation)