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

Commit ae2bb42a authored by Daniel Akinola's avatar Daniel Akinola
Browse files

Fix SnapResizeAppWindowLeftWithDrag Assertions

Tiling made it so that the assertions on the size of the snap resize windows was off, so follow the example of the SnapResizeAppWindowWithButton fix and add a threshold to the assertion

Bug: 377079516
Change-Id: Ib91ab4412872bed092a3bb713b25eac92cfb6926
Test: atest SnapResizeAppWindowLeftWithDrag
Flag: TEST_ONLY
parent 0f03f91e
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -272,9 +272,11 @@ class DesktopModeFlickerScenarios {
                        TaggedCujTransitionMatcher(associatedTransitionRequired = false)
                    )
                    .build(),
                assertions = AssertionTemplates.DESKTOP_MODE_APP_VISIBILITY_ASSERTIONS +
                        listOf(AppWindowCoversLeftHalfScreenAtEnd(DESKTOP_MODE_APP))
                            .associateBy({ it }, { AssertionInvocationGroup.BLOCKING }),
                assertions = AssertionTemplates.DESKTOP_MODE_APP_VISIBILITY_ASSERTIONS + listOf(
                    AppWindowCoversLeftHalfScreenAtEnd(
                        DESKTOP_MODE_APP, SNAP_WINDOW_MAX_DIFF_THRESHOLD_RATIO
                    )
                ).associateBy({ it }, { AssertionInvocationGroup.BLOCKING }),
            )

        val SNAP_RESIZE_RIGHT_WITH_DRAG =
@@ -287,9 +289,11 @@ class DesktopModeFlickerScenarios {
                        TaggedCujTransitionMatcher(associatedTransitionRequired = false)
                    )
                    .build(),
                assertions = AssertionTemplates.DESKTOP_MODE_APP_VISIBILITY_ASSERTIONS +
                        listOf(AppWindowCoversRightHalfScreenAtEnd(DESKTOP_MODE_APP))
                            .associateBy({ it }, { AssertionInvocationGroup.BLOCKING }),
                assertions = AssertionTemplates.DESKTOP_MODE_APP_VISIBILITY_ASSERTIONS + listOf(
                    AppWindowCoversRightHalfScreenAtEnd(
                        DESKTOP_MODE_APP, SNAP_WINDOW_MAX_DIFF_THRESHOLD_RATIO
                    )
                ).associateBy({ it }, { AssertionInvocationGroup.BLOCKING }),
            )

        val SNAP_RESIZE_WITH_DRAG_NON_RESIZABLE =