Merge "Promote stable flicker presubmit tests"

This commit is contained in:
TreeHugger Robot
2021-10-25 09:23:08 +00:00
committed by Android (Google) Code Review
8 changed files with 14 additions and 15 deletions

View File

@@ -18,9 +18,9 @@ package com.android.wm.shell.flicker.bubble
import android.content.Context
import android.graphics.Point
import android.platform.test.annotations.Postsubmit
import android.util.DisplayMetrics
import android.view.WindowManager
import androidx.test.filters.FlakyTest
import androidx.test.filters.RequiresDevice
import androidx.test.uiautomator.By
import androidx.test.uiautomator.Until
@@ -66,7 +66,7 @@ class DismissBubbleScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(tes
}
}
@FlakyTest
@Postsubmit
@Test
fun testAppIsAlwaysVisible() {
testSpec.assertLayers {

View File

@@ -16,7 +16,7 @@
package com.android.wm.shell.flicker.bubble
import androidx.test.filters.FlakyTest
import android.platform.test.annotations.Postsubmit
import androidx.test.filters.RequiresDevice
import androidx.test.uiautomator.By
import androidx.test.uiautomator.Until
@@ -59,7 +59,7 @@ class ExpandBubbleScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(test
}
}
@FlakyTest
@Postsubmit
@Test
fun testAppIsAlwaysVisible() {
testSpec.assertLayers {

View File

@@ -16,7 +16,7 @@
package com.android.wm.shell.flicker.bubble
import androidx.test.filters.FlakyTest
import android.platform.test.annotations.Postsubmit
import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.FlickerParametersRunnerFactory
import com.android.server.wm.flicker.FlickerTestParameter
@@ -49,7 +49,7 @@ class LaunchBubbleScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(test
}
}
@FlakyTest
@Postsubmit
@Test
fun testAppIsAlwaysVisible() {
testSpec.assertLayers {

View File

@@ -17,7 +17,7 @@
package com.android.wm.shell.flicker.bubble
import android.os.SystemClock
import androidx.test.filters.FlakyTest
import android.platform.test.annotations.Postsubmit
import androidx.test.filters.RequiresDevice
import androidx.test.uiautomator.By
import androidx.test.uiautomator.Until
@@ -67,7 +67,7 @@ class MultiBubblesScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(test
}
}
@FlakyTest
@Postsubmit
@Test
fun testAppIsAlwaysVisible() {
testSpec.assertLayers {

View File

@@ -197,7 +197,7 @@ abstract class CloseAppTransition(protected val testSpec: FlickerTestParameter)
testSpec.replacesLayer(testApp.component, LAUNCHER_COMPONENT)
}
@Postsubmit
@Presubmit
@Test
fun runPresubmitAssertion() {
flickerRule.checkPresubmitAssertions()

View File

@@ -16,7 +16,6 @@
package com.android.server.wm.flicker.launch
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import androidx.test.filters.FlakyTest
import androidx.test.filters.RequiresDevice
@@ -88,12 +87,12 @@ class OpenAppColdTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp
}
/** {@inheritDoc} */
@Postsubmit
@Presubmit
@Test
override fun appLayerReplacesLauncher() = super.appLayerReplacesLauncher()
/** {@inheritDoc} */
@Postsubmit
@Presubmit
@Test
override fun appWindowReplacesLauncherAsTopWindow() =
super.appWindowReplacesLauncherAsTopWindow()

View File

@@ -203,7 +203,7 @@ class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) : OpenAppTransiti
* Checks that the screen is locked at the start of the transition ([colorFadComponent])
* layer is visible
*/
@Postsubmit
@Presubmit
@Test
fun screenLockedStart() {
testSpec.assertLayersStart {
@@ -216,7 +216,7 @@ class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) : OpenAppTransiti
* it cannot use the regular assertion (check over time), because on lock screen neither
* the app not the launcher are visible, and there is no top visible window.
*/
@Postsubmit
@Presubmit
@Test
override fun appWindowReplacesLauncherAsTopWindow() {
testSpec.assertWm {

View File

@@ -95,7 +95,7 @@ class ChangeAppRotationTest(
}
}
@Postsubmit
@Presubmit
@Test
fun runPresubmitAssertion() {
flickerRule.checkPresubmitAssertions()