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

Commit fb03625f authored by Daniel Huang's avatar Daniel Huang Committed by Automerger Merge Worker
Browse files

Merge "Update KeyboardLayoutPickerControllerTest" into udc-dev am: a2375807

parents c680bd69 a2375807
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,13 +93,13 @@ public class KeyboardLayoutPickerControllerTest {
    }

    @Test
    public void testLifecycle_onStart_NoInputDevice_shouldFinish() {
    public void testLifecycle_onStart_NoInputDevice_shouldReturn() {
        final FragmentActivity activity = Robolectric.setupActivity(FragmentActivity.class);
        when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(null);
        when(mFragment.getActivity()).thenReturn(activity);

        mController.onStart();
        assertThat(activity.isFinishing()).isTrue();
        verify(mInputManager, never()).getEnabledKeyboardLayoutsForInputDevice(any());
    }

    @Test