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

Commit c219bc03 authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

Merge "Disable PipLegacySplitScreenTest when Shell Transition is on." into...

Merge "Disable PipLegacySplitScreenTest when Shell Transition is on." into sc-v2-dev am: 1b1cadef am: 83f256c6

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

Change-Id: If3d2ad75118341a7f2d1f96c948e899f0dfcdbee
parents 5e5e8646 83f256c6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -31,7 +31,10 @@ import com.android.wm.shell.flicker.helpers.ImeAppHelper
import com.android.wm.shell.flicker.helpers.FixedAppHelper
import com.android.server.wm.flicker.repetitions
import com.android.server.wm.flicker.rules.RemoveAllTasksButHomeRule.Companion.removeAllTasksButHome
import com.android.wm.shell.flicker.helpers.BaseAppHelper.Companion.isShellTransitionsEnabled
import com.android.wm.shell.flicker.testapp.Components.PipActivity.EXTRA_ENTER_PIP
import org.junit.Assume.assumeFalse
import org.junit.Before
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runner.RunWith
@@ -51,6 +54,12 @@ class PipLegacySplitScreenTest(testSpec: FlickerTestParameter) : PipTransition(t
    private val imeApp = ImeAppHelper(instrumentation)
    private val testApp = FixedAppHelper(instrumentation)

    @Before
    open fun setup() {
        // Legacy split is having some issue with Shell transition, and will be deprecated soon.
        assumeFalse(isShellTransitionsEnabled())
    }

    override val transition: FlickerBuilder.(Map<String, Any?>) -> Unit
        get() = {
            withTestName { testSpec.name }