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

Commit fdbfa751 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Move all non shell quickswitch tests to presubmit" into tm-dev

parents 80c4b33d 4740dd05
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.server.wm.flicker.quickswitch

import android.app.Instrumentation
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.platform.test.annotations.RequiresDevice
import android.view.Surface
@@ -115,7 +114,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that the transition starts with [testApp2]'s windows filling/covering exactly the
     * entirety of the display.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun startsWithApp2WindowsCoverFullScreen() {
        testSpec.assertWmStart {
@@ -127,7 +126,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that the transition starts with [testApp2]'s layers filling/covering exactly the
     * entirety of the display.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun startsWithApp2LayersCoverFullScreen() {
        testSpec.assertLayersStart {
@@ -150,7 +149,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] windows fill the entire screen (i.e. is "fullscreen") at the end of the
     * transition once we have fully quick switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1WindowsCoveringFullScreen() {
        testSpec.assertWmEnd {
@@ -162,7 +161,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] layers fill the entire screen (i.e. is "fullscreen") at the end of the
     * transition once we have fully quick switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1LayersCoveringFullScreen() {
        testSpec.assertLayersEnd {
@@ -174,7 +173,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1] is the top window at the end of the transition once we have fully quick
     * switched from [testApp2] back to the [testApp1].
     */
    @Postsubmit
    @Presubmit
    @Test
    fun endsWithApp1BeingOnTop() {
        testSpec.assertWmEnd {
@@ -186,7 +185,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1]'s window starts off invisible and becomes visible at some point before
     * the end of the transition and then stays visible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1WindowBecomesAndStaysVisible() {
        testSpec.assertWm {
@@ -202,7 +201,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp1]'s layer starts off invisible and becomes visible at some point before
     * the end of the transition and then stays visible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1LayerBecomesAndStaysVisible() {
        testSpec.assertLayers {
@@ -216,7 +215,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp2]'s window starts off visible and becomes invisible at some point before
     * the end of the transition and then stays invisible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app2WindowBecomesAndStaysInvisible() {
        testSpec.assertWm {
@@ -230,7 +229,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Checks that [testApp2]'s layer starts off visible and becomes invisible at some point before
     * the end of the transition and then stays invisible until the end of the transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app2LayerBecomesAndStaysInvisible() {
        testSpec.assertLayers {
@@ -245,7 +244,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Ensures that at any point, either [testApp1] or [testApp2]'s windows are at least partially
     * visible.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1WindowIsVisibleOnceApp2WindowIsInvisible() {
        testSpec.assertWm {
@@ -265,7 +264,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
     * Ensures that at any point, either [testApp1] or [testApp2]'s windows are at least partially
     * visible.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun app1LayerIsVisibleOnceApp2LayerIsInvisible() {
        testSpec.assertLayers {
@@ -282,7 +281,7 @@ open class QuickSwitchBetweenTwoAppsBackTest(private val testSpec: FlickerTestPa
    /**
     * Checks that the navbar window is visible throughout the entire transition.
     */
    @Postsubmit
    @Presubmit
    @Test
    fun navBarWindowIsAlwaysVisible() = testSpec.navBarWindowIsVisible()