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

Commit 8a689ab6 authored by Menghan Li's avatar Menghan Li Committed by Android (Google) Code Review
Browse files

Merge "Remove DaltonizerPreferenceControllerTest unnecessary test"

parents e9f289d5 8a3a58ee
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ public class DaltonizerPreferenceControllerTest {
    private static final String PREF_KEY = "daltonizer_preference";
    private static final int ON = 1;
    private static final int OFF = 0;
    private static final String DALTONIZER_VALUE = "11";

    private Context mContext;
    private DaltonizerPreferenceController mController;
@@ -62,13 +61,4 @@ public class DaltonizerPreferenceControllerTest {
        assertThat(mController.getSummary().toString().contains(
                mContext.getText(R.string.accessibility_feature_state_off))).isTrue();
    }

    @Test
    public void getSummary_selectProtanomaly_shouldReturnProtanomalySummary() {
        Settings.Secure.putString(mContext.getContentResolver(),
                Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DALTONIZER_VALUE);

        assertThat(mController.getSummary().toString().contains(
                mContext.getText(R.string.daltonizer_mode_protanomaly))).isTrue();
    }
}