Loading tests/robotests/src/com/android/settings/localepicker/AppLocalePickerActivityTest.java +4 −3 Original line number Diff line number Diff line Loading @@ -58,7 +58,6 @@ import com.android.settings.testutils.FakeFeatureFactory; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; Loading Loading @@ -203,7 +202,6 @@ public class AppLocalePickerActivityTest { assertThat(controller.get().isFinishing()).isTrue(); } @Ignore("b/313604701") @Test public void onLocaleSelected_getLocaleNotNull_getLanguageTag() { ActivityController<TestAppLocalePickerActivity> controller = Loading @@ -216,7 +214,10 @@ public class AppLocalePickerActivityTest { AppLocalePickerActivity mActivity = controller.get(); mActivity.onLocaleSelected(mLocaleInfo); verify(mLocaleInfo, times(2)).getLocale(); // 1st for getLocale()!= null // 2nd for setAppDefaultLocale(getLocale()) // 3rd for broadcastAppLocaleChange() verify(mLocaleInfo, times(3)).getLocale(); assertThat(mLocaleInfo.getLocale().toLanguageTag()).isEqualTo("en-US"); assertThat(controller.get().isFinishing()).isTrue(); } Loading Loading
tests/robotests/src/com/android/settings/localepicker/AppLocalePickerActivityTest.java +4 −3 Original line number Diff line number Diff line Loading @@ -58,7 +58,6 @@ import com.android.settings.testutils.FakeFeatureFactory; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; Loading Loading @@ -203,7 +202,6 @@ public class AppLocalePickerActivityTest { assertThat(controller.get().isFinishing()).isTrue(); } @Ignore("b/313604701") @Test public void onLocaleSelected_getLocaleNotNull_getLanguageTag() { ActivityController<TestAppLocalePickerActivity> controller = Loading @@ -216,7 +214,10 @@ public class AppLocalePickerActivityTest { AppLocalePickerActivity mActivity = controller.get(); mActivity.onLocaleSelected(mLocaleInfo); verify(mLocaleInfo, times(2)).getLocale(); // 1st for getLocale()!= null // 2nd for setAppDefaultLocale(getLocale()) // 3rd for broadcastAppLocaleChange() verify(mLocaleInfo, times(3)).getLocale(); assertThat(mLocaleInfo.getLocale().toLanguageTag()).isEqualTo("en-US"); assertThat(controller.get().isFinishing()).isTrue(); } Loading