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

Commit 312f714e authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Update snapshotStartingWindowLayerCoversExactlyOnApp to only check snapshot...

Update snapshotStartingWindowLayerCoversExactlyOnApp to only check snapshot starting windows overlap app when app exists

Test: atest com.android.server.wm.flicker.ime.ShowImeOnAppStartWhenLaunchingAppFromFixedOrientationTest

Bug: 293096776
Change-Id: I7be721d482c79bb18677f04bc66b972cda5b8ef3
parent 09c26762
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -283,9 +283,9 @@ fun LegacyFlickerTest.snapshotStartingWindowLayerCoversExactlyOnApp(
                    .mapNotNull { snapshotLayer -> snapshotLayer.layer.visibleRegion }
                    .toTypedArray()
            val snapshotRegion = RegionSubject(visibleAreas, it.timestamp)
            // Verify the size of snapshotRegion covers appVisibleRegion exactly in animation.
            if (snapshotRegion.region.isNotEmpty) {
            val appVisibleRegion = it.visibleRegion(component)
            // Verify the size of snapshotRegion covers appVisibleRegion exactly in animation.
            if (snapshotRegion.region.isNotEmpty && appVisibleRegion.region.isNotEmpty) {
                snapshotRegion.coversExactly(appVisibleRegion.region)
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class ShowImeOnAppStartWhenLaunchingAppFromFixedOrientationTest(flicker: LegacyF

    @Presubmit @Test fun imeLayerBecomesVisible() = flicker.imeLayerBecomesVisible()

    @FlakyTest(bugId = 293096776)
    @Presubmit
    @Test
    fun snapshotStartingWindowLayerCoversExactlyOnApp() {
        flicker.snapshotStartingWindowLayerCoversExactlyOnApp(imeTestApp)