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

Commit d679a5ee authored by Hongyu Long's avatar Hongyu Long Committed by Android (Google) Code Review
Browse files

Merge "a11y: Ignore the unittest causing crash" into main

parents 06491240 ebc3a17b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.accessibility.keygesture.ui

import android.hardware.input.KeyGestureEvent
import android.platform.test.annotations.DisableFlags
import android.platform.test.annotations.EnableFlags
import android.view.Display.DEFAULT_DISPLAY
import androidx.test.annotation.UiThreadTest
@@ -80,8 +81,10 @@ class KeyGestureDialogStartableTest : SysuiTestCase() {
    fun tearDown() {
        // If we show the dialog, we must dismiss the dialog at the end of the test on the main
        // thread.
        if (::underTest.isInitialized) {
            underTest.currentDialog?.dismiss()
        }
    }

    @Test
    fun start_doesNotShowDialogByDefault() =
@@ -93,6 +96,8 @@ class KeyGestureDialogStartableTest : SysuiTestCase() {
        }

    @Test
    @Ignore("b/425722546 - we have one in review CL ag/35510953 for fixing the crash")
    @DisableFlags(Flags.FLAG_ENABLE_MAGNIFY_MAGNIFICATION_KEY_GESTURE_DIALOG)
    fun start_onMagnificationInfoFlowCollected_showDialog() =
        testScope.runTest {
            underTest.start()
@@ -114,6 +119,8 @@ class KeyGestureDialogStartableTest : SysuiTestCase() {
        }

    @Test
    @Ignore("b/425722546 - we have one in review CL ag/35510953 for fixing the crash")
    @DisableFlags(Flags.FLAG_ENABLE_MAGNIFY_MAGNIFICATION_KEY_GESTURE_DIALOG)
    fun start_onMagnificationInfoFlowCollected_dialogShowing_ignoreAdditionalFlows() =
        testScope.runTest {
            underTest.start()