From 4a769ea516412332abd9447a7d6b6f237dc1cdba Mon Sep 17 00:00:00 2001 From: FanWu Date: Tue, 28 Nov 2023 11:16:22 +0800 Subject: [PATCH] Ignore failing tests under com.android.settings.gestures Bug: 313541907 Test: atest Change-Id: Icaf54beca37a17015a849259a1b888a7c9361664 --- .../gestures/OneHandedActionPullDownPrefControllerTest.java | 2 ++ .../OneHandedActionShowNotificationPrefControllerTest.java | 2 ++ .../gestures/OneHandedMainSwitchPreferenceControllerTest.java | 2 ++ .../gestures/OneHandedPreferenceCategoryControllerTest.java | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tests/robotests/src/com/android/settings/gestures/OneHandedActionPullDownPrefControllerTest.java b/tests/robotests/src/com/android/settings/gestures/OneHandedActionPullDownPrefControllerTest.java index e6b03432927..de07fe065e2 100644 --- a/tests/robotests/src/com/android/settings/gestures/OneHandedActionPullDownPrefControllerTest.java +++ b/tests/robotests/src/com/android/settings/gestures/OneHandedActionPullDownPrefControllerTest.java @@ -26,6 +26,7 @@ import com.android.settings.core.BasePreferenceController; import com.android.settingslib.widget.SelectorWithWidgetPreference; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; @@ -76,6 +77,7 @@ public class OneHandedActionPullDownPrefControllerTest { .isEqualTo(BasePreferenceController.DISABLED_DEPENDENT_SETTING); } + @Ignore("b/313541907") @Test public void getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled() { SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); diff --git a/tests/robotests/src/com/android/settings/gestures/OneHandedActionShowNotificationPrefControllerTest.java b/tests/robotests/src/com/android/settings/gestures/OneHandedActionShowNotificationPrefControllerTest.java index da271917d5e..6d130564613 100644 --- a/tests/robotests/src/com/android/settings/gestures/OneHandedActionShowNotificationPrefControllerTest.java +++ b/tests/robotests/src/com/android/settings/gestures/OneHandedActionShowNotificationPrefControllerTest.java @@ -26,6 +26,7 @@ import com.android.settings.core.BasePreferenceController; import com.android.settingslib.widget.SelectorWithWidgetPreference; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; @@ -85,6 +86,7 @@ public class OneHandedActionShowNotificationPrefControllerTest { .isEqualTo(BasePreferenceController.DISABLED_DEPENDENT_SETTING); } + @Ignore("b/313541907") @Test public void getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled() { SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); diff --git a/tests/robotests/src/com/android/settings/gestures/OneHandedMainSwitchPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/gestures/OneHandedMainSwitchPreferenceControllerTest.java index 599d4e09142..118c58a3627 100644 --- a/tests/robotests/src/com/android/settings/gestures/OneHandedMainSwitchPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/gestures/OneHandedMainSwitchPreferenceControllerTest.java @@ -25,6 +25,7 @@ import android.os.UserHandle; import com.android.settings.core.BasePreferenceController; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; @@ -83,6 +84,7 @@ public class OneHandedMainSwitchPreferenceControllerTest { .isEqualTo(BasePreferenceController.DISABLED_DEPENDENT_SETTING); } + @Ignore("b/313541907") @Test public void getAvailabilityStatus_set3ButtonMode_shouldDisabled() { SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); diff --git a/tests/robotests/src/com/android/settings/gestures/OneHandedPreferenceCategoryControllerTest.java b/tests/robotests/src/com/android/settings/gestures/OneHandedPreferenceCategoryControllerTest.java index 112e04aa806..b3d4934a408 100644 --- a/tests/robotests/src/com/android/settings/gestures/OneHandedPreferenceCategoryControllerTest.java +++ b/tests/robotests/src/com/android/settings/gestures/OneHandedPreferenceCategoryControllerTest.java @@ -30,6 +30,7 @@ import androidx.preference.PreferenceScreen; import com.android.settings.R; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -61,6 +62,7 @@ public class OneHandedPreferenceCategoryControllerTest { when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); } + @Ignore("b/313541907") @Test public void getTitle_set3ButtonMode_shouldReturnSetShortcutTo() { mUtils.setNavigationBarMode(mContext, "0" /* 3 button */);