Merge "Promote stable flicker tests (rotation)" into sc-dev

This commit is contained in:
Nataniel Borges
2021-06-04 15:32:49 +00:00
committed by Android (Google) Code Review
3 changed files with 10 additions and 39 deletions

View File

@@ -55,7 +55,7 @@ class ChangeAppRotationTest(
} }
} }
@FlakyTest(bugId = 151179149) @FlakyTest(bugId = 190185577)
@Test @Test
override fun focusDoesNotChange() { override fun focusDoesNotChange() {
super.focusDoesNotChange() super.focusDoesNotChange()
@@ -63,12 +63,6 @@ class ChangeAppRotationTest(
@Postsubmit @Postsubmit
@Test @Test
override fun noUncoveredRegions() {
super.noUncoveredRegions()
}
@FlakyTest
@Test
fun screenshotLayerBecomesInvisible() { fun screenshotLayerBecomesInvisible() {
testSpec.assertLayers { testSpec.assertLayers {
this.isVisible(testApp.getPackage()) this.isVisible(testApp.getPackage())
@@ -81,14 +75,8 @@ class ChangeAppRotationTest(
@Postsubmit @Postsubmit
@Test @Test
override fun appLayerRotates_EndingPos() { override fun statusBarLayerRotatesScales() {
super.appLayerRotates_EndingPos() super.statusBarLayerRotatesScales()
}
@Postsubmit
@Test
override fun appLayerRotates_StartingPos() {
super.appLayerRotates_StartingPos()
} }
@Presubmit @Presubmit
@@ -97,18 +85,12 @@ class ChangeAppRotationTest(
super.navBarWindowIsAlwaysVisible() super.navBarWindowIsAlwaysVisible()
} }
@Postsubmit @FlakyTest
@Test @Test
override fun statusBarLayerIsAlwaysVisible() { override fun statusBarLayerIsAlwaysVisible() {
super.statusBarLayerIsAlwaysVisible() super.statusBarLayerIsAlwaysVisible()
} }
@Postsubmit
@Test
override fun statusBarWindowIsAlwaysVisible() {
super.statusBarWindowIsAlwaysVisible()
}
companion object { companion object {
private const val SCREENSHOT_LAYER = "RotationLayer" private const val SCREENSHOT_LAYER = "RotationLayer"

View File

@@ -88,7 +88,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
testSpec.config.startRotation, testSpec.config.endRotation) testSpec.config.startRotation, testSpec.config.endRotation)
} }
@FlakyTest @Presubmit
@Test @Test
open fun statusBarWindowIsAlwaysVisible() { open fun statusBarWindowIsAlwaysVisible() {
testSpec.statusBarWindowIsAlwaysVisible() testSpec.statusBarWindowIsAlwaysVisible()
@@ -128,7 +128,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
} }
} }
@FlakyTest @Presubmit
@Test @Test
open fun noUncoveredRegions() { open fun noUncoveredRegions() {
testSpec.noUncoveredRegions(testSpec.config.startRotation, testSpec.noUncoveredRegions(testSpec.config.startRotation,
@@ -141,7 +141,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
testSpec.focusDoesNotChange() testSpec.focusDoesNotChange()
} }
@FlakyTest @Presubmit
@Test @Test
open fun appLayerRotates_StartingPos() { open fun appLayerRotates_StartingPos() {
testSpec.assertLayersStart { testSpec.assertLayersStart {
@@ -149,7 +149,7 @@ abstract class RotationTransition(protected val testSpec: FlickerTestParameter)
} }
} }
@FlakyTest @Presubmit
@Test @Test
open fun appLayerRotates_EndingPos() { open fun appLayerRotates_EndingPos() {
testSpec.assertLayersEnd { testSpec.assertLayersEnd {

View File

@@ -17,6 +17,7 @@
package com.android.server.wm.flicker.rotation package com.android.server.wm.flicker.rotation
import android.platform.test.annotations.Postsubmit import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import androidx.test.filters.FlakyTest import androidx.test.filters.FlakyTest
import androidx.test.filters.RequiresDevice import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.FlickerParametersRunnerFactory import com.android.server.wm.flicker.FlickerParametersRunnerFactory
@@ -71,13 +72,7 @@ class SeamlessAppRotationTest(
super.statusBarLayerIsAlwaysVisible() super.statusBarLayerIsAlwaysVisible()
} }
@FlakyTest(bugId = 185400889) @Presubmit
@Test
override fun noUncoveredRegions() {
super.noUncoveredRegions()
}
@FlakyTest(bugId = 185400889)
@Test @Test
fun appLayerAlwaysVisible() { fun appLayerAlwaysVisible() {
testSpec.assertLayers { testSpec.assertLayers {
@@ -95,12 +90,6 @@ class SeamlessAppRotationTest(
} }
} }
@Postsubmit
@Test
override fun navBarWindowIsAlwaysVisible() {
super.navBarWindowIsAlwaysVisible()
}
@Postsubmit @Postsubmit
@Test @Test
override fun visibleLayersShownMoreThanOneConsecutiveEntry() { override fun visibleLayersShownMoreThanOneConsecutiveEntry() {