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

Commit 6e7cc741 authored by Souradeep's avatar Souradeep
Browse files

b/437518474 Fix the issue for Open Unlimited Apps without window limit flicker test

Test: USE_RBE=false atest WMShellFlickerTestsDesktopMode:com.android.wm.shell.flicker.fundamentals.OpenUnlimitedAppsFlickerTest -c (http://ab/I63000010432293511)

Video: http://recall/-/fgrx9chrKP96KIqMNsB8ph
Flag: EXEMPT test refactoring
Bug: 437518474
Change-Id: I14e6110d357ee46c7063b0eb0a9b53fa0d9bf7af
parent 8edfcc65
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -32,7 +32,10 @@ import com.android.server.wm.flicker.helpers.LetterboxAppHelper
import com.android.server.wm.flicker.helpers.NonResizeableAppHelper
import com.android.server.wm.flicker.helpers.NewTasksAppHelper
import com.android.server.wm.flicker.helpers.NotificationAppHelper
import com.android.wm.shell.shared.desktopmode.DesktopConfig

import org.junit.After
import org.junit.Assume
import org.junit.Before
import org.junit.Ignore
import org.junit.Test
@@ -48,6 +51,9 @@ abstract class OpenUnlimitedApps(val rotation: Rotation = Rotation.ROTATION_0) :
    private val device = UiDevice.getInstance(instrumentation)

    val testApp = DesktopModeAppHelper(SimpleAppHelper(instrumentation))
    private val desktopConfig = DesktopConfig.fromContext(instrumentation.context)

    private val maxNum = desktopConfig.maxTaskLimit

    val appLaunchedInDesktop: List<DesktopModeAppHelper> = listOf(
        MailAppHelper(instrumentation),
@@ -63,6 +69,7 @@ abstract class OpenUnlimitedApps(val rotation: Rotation = Rotation.ROTATION_0) :

    @Before
    fun setup() {
        Assume.assumeTrue(maxNum == 0)
        testApp.enterDesktopMode(wmHelper, device)
    }