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

Commit 6411589c authored by Nataniel Borges's avatar Nataniel Borges Committed by Automerger Merge Worker
Browse files

Merge "Promote stable open app from overview tests" into sc-dev am: 82612b19

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699871

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I750a24147538d2ec16ff72ddb49d9b457912fb72
parents 99fae224 82612b19
Loading
Loading
Loading
Loading
+22 −5
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.server.wm.flicker.launch

import android.app.Instrumentation
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.view.Surface
import androidx.test.filters.FlakyTest
@@ -148,17 +147,35 @@ class OpenAppFromOverviewTest(private val testSpec: FlickerTestParameter) {
    @Test
    fun focusChanges() = testSpec.focusChanges("NexusLauncherActivity", testApp.`package`)

    @Postsubmit
    @Presubmit
    @Test
    fun visibleWindowsShownMoreThanOneConsecutiveEntry() =
    fun visibleWindowsShownMoreThanOneConsecutiveEntry() {
        Assume.assumeFalse(testSpec.isRotated)
        testSpec.visibleWindowsShownMoreThanOneConsecutiveEntry()
    }

    @FlakyTest
    @Test
    fun visibleWindowsShownMoreThanOneConsecutiveEntry_Flaky() {
        Assume.assumeTrue(testSpec.isRotated)
        testSpec.visibleWindowsShownMoreThanOneConsecutiveEntry()
    }

    @Presubmit
    @Test
    fun visibleLayersShownMoreThanOneConsecutiveEntry() {
        Assume.assumeFalse(testSpec.isRotated)
        testSpec.visibleLayersShownMoreThanOneConsecutiveEntry()
    }

    @FlakyTest
    @Test
    fun visibleLayersShownMoreThanOneConsecutiveEntry() =
    fun visibleLayersShownMoreThanOneConsecutiveEntry_Flaky() {
        Assume.assumeTrue(testSpec.isRotated)
        testSpec.visibleLayersShownMoreThanOneConsecutiveEntry()
    }

    @FlakyTest(bugId = 141361128)
    @Presubmit
    @Test
    fun noUncoveredRegions() = testSpec.noUncoveredRegions(Surface.ROTATION_0,
        testSpec.config.endRotation)