Fix for GestureShortcutOptionControllerTest

Flag: android.provider.a11y_standalone_gesture_enabled
Bug: 368704597
Test: atest GestureShortcutOptionControllerTest
Change-Id: I8736fe5f79ea527702640087de1f9b7fcc9a046a
This commit is contained in:
Riley Jones
2024-09-24 18:36:30 +00:00
parent 9cdd1108c3
commit 214af3c7d2

View File

@@ -92,6 +92,7 @@ public class GestureShortcutOptionControllerTest {
}
@Test
@DisableFlags(Flags.FLAG_A11Y_STANDALONE_GESTURE_ENABLED)
public void getSummary_touchExplorationDisabled_notInSuw_verifySummary() {
enableTouchExploration(false);
mController.setInSetupWizard(false);
@@ -106,6 +107,19 @@ public class GestureShortcutOptionControllerTest {
assertThat(mController.getSummary().toString()).isEqualTo(expected);
}
@Test
@EnableFlags(Flags.FLAG_A11Y_STANDALONE_GESTURE_ENABLED)
public void getSummary_touchExplorationDisabled_notInSuw_gestureFlag_verifySummary() {
enableTouchExploration(false);
mController.setInSetupWizard(false);
String expected = StringUtil.getIcuPluralsString(
mContext,
/* count= */ 2,
R.string.accessibility_shortcut_edit_dialog_summary_gesture);
assertThat(mController.getSummary().toString()).isEqualTo(expected);
}
@Test
public void getSummary_touchExplorationDisabled_inSuw_verifySummary() {
enableTouchExploration(false);