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

Commit 90266ed4 authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

Skip drag-to-exit-desktop test when drag-to-maximize is enabled

This CL skips ExitDesktopWithDragToTopDragZone when the drag-to-maximize
is enabled on the device.
Otherwise, the test fails on such a device as the consequence of
“DragToTopDragZone” is different (exit-desktop vs. being maximized).

Bug: 376593075
Flag: EXEMPT test assumption fix
Test: ExitDesktopWithDragToTopDragZoneTest
Change-Id: I57cc914d37a7da8e33b29ca11d64d39d6fbba623
parent 2a76c44a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.wm.shell.scenarios

import android.tools.NavBar
import android.tools.Rotation
import com.android.internal.R
import com.android.window.flags.Flags
import com.android.wm.shell.Utils
import org.junit.After
@@ -40,6 +41,9 @@ constructor(
    @Before
    fun setup() {
        Assume.assumeTrue(Flags.enableDesktopWindowingMode() && tapl.isTablet)
        // Skip the test when the drag-to-maximize is enabled on this device.
        Assume.assumeFalse(Flags.enableDragToMaximize() &&
            instrumentation.context.resources.getBoolean(R.bool.config_dragToMaximizeInDesktopMode))
        tapl.setEnableRotation(true)
        tapl.setExpectedRotation(rotation.value)
        testApp.enterDesktopWithDrag(wmHelper, device)