diff options
| author | 2024-10-22 18:17:43 +0000 | |
|---|---|---|
| committer | 2024-10-22 18:17:43 +0000 | |
| commit | d788378eca2fa15f9f33199d056dbc29b46511d4 (patch) | |
| tree | 9e5928b42f8bef5afd3cf614dd0944b828be292b | |
| parent | 570e59da57dc0f93b1c3ec938490c65bfefe684a (diff) | |
| parent | 4d0dc576c0cefc8a6021c7a37b568df7f175241a (diff) | |
Merge "Fix test: Do not assert that currentInputStarted flag is set after hiding the IME" into main
| -rw-r--r-- | services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java index 2c785049412a..2bc8af1b913e 100644 --- a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +++ b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java @@ -159,15 +159,16 @@ public class InputMethodServiceTest { // Press home key to hide soft keyboard. Log.i(TAG, "Press home"); - verifyInputViewStatus( - () -> assertThat(mUiDevice.pressHome()).isTrue(), - true /* expected */, - false /* inputViewStarted */); if (Flags.refactorInsetsController()) { + assertThat(mUiDevice.pressHome()).isTrue(); // The IME visibility is only sent at the end of the animation. Therefore, we have to // wait until the visibility was sent to the server and the IME window hidden. eventually(() -> assertThat(mInputMethodService.isInputViewShown()).isFalse()); } else { + verifyInputViewStatus( + () -> assertThat(mUiDevice.pressHome()).isTrue(), + true /* expected */, + false /* inputViewStarted */); assertThat(mInputMethodService.isInputViewShown()).isFalse(); } } |