diff options
author | Nikolas Havrikov <havrikov@google.com> | 2023-10-31 12:57:25 +0000 |
---|---|---|
committer | Nikolas Havrikov <havrikov@google.com> | 2023-11-01 10:30:28 +0000 |
commit | c58375288dc2d93136a253df872afc9e1a4ad261 (patch) | |
tree | 5099c55aa4b4398573c39d5a6b3182595f7a7a0d | |
parent | 78ae2cbefed5899a20a4e97629f043d2fc539171 (diff) | |
download | cts-c58375288dc2d93136a253df872afc9e1a4ad261.tar.gz |
Do not expect onStartInput with preventable IME
The testUnfocusedEditor_* test family does not account for the IME being
preventable as per the config_preventImeStartupUnlessTextEditor setting.
Bug: 304905940
Test: enable preventable IME and run atest FocusHandlingTest
(cherry picked from https://android-review.googlesource.com/q/commit:3ebcde310fcb58efe004bf7cc014296c45fc659f)
Merged-In: Ib5167beb33cc5121870ac2cdd7c10017555a189c
Change-Id: Ib5167beb33cc5121870ac2cdd7c10017555a189c
-rw-r--r-- | tests/inputmethod/src/android/view/inputmethod/cts/FocusHandlingTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/inputmethod/src/android/view/inputmethod/cts/FocusHandlingTest.java b/tests/inputmethod/src/android/view/inputmethod/cts/FocusHandlingTest.java index 9cf78750bd4..83aa2ffc2b7 100644 --- a/tests/inputmethod/src/android/view/inputmethod/cts/FocusHandlingTest.java +++ b/tests/inputmethod/src/android/view/inputmethod/cts/FocusHandlingTest.java @@ -817,6 +817,7 @@ public class FocusHandlingTest extends EndToEndImeTestBase { @Test public void testUnfocusedEditor_stateHidden_hidesIme() throws Exception { + Assume.assumeFalse(isPreventImeStartup()); ImeEventStream stream = startFocusedEditorActivity_thenAnotherUnfocusedEditorActivity( SOFT_INPUT_STATE_HIDDEN); expectImeHidden(stream); @@ -825,6 +826,7 @@ public class FocusHandlingTest extends EndToEndImeTestBase { @Test public void testUnfocusedEditor_stateAlwaysHidden_hidesIme() throws Exception { + Assume.assumeFalse(isPreventImeStartup()); ImeEventStream stream = startFocusedEditorActivity_thenAnotherUnfocusedEditorActivity( SOFT_INPUT_STATE_ALWAYS_HIDDEN); expectImeHidden(stream); @@ -833,6 +835,7 @@ public class FocusHandlingTest extends EndToEndImeTestBase { @Test public void testUnfocusedEditor_stateVisible_startsIme() throws Exception { + Assume.assumeFalse(isPreventImeStartup()); ImeEventStream stream = startFocusedEditorActivity_thenAnotherUnfocusedEditorActivity( SOFT_INPUT_STATE_VISIBLE); // The previous IME should be finished @@ -847,6 +850,7 @@ public class FocusHandlingTest extends EndToEndImeTestBase { @Test public void testUnfocusedEditor_stateAlwaysVisible_startsIme() throws Exception { + Assume.assumeFalse(isPreventImeStartup()); ImeEventStream stream = startFocusedEditorActivity_thenAnotherUnfocusedEditorActivity( SOFT_INPUT_STATE_ALWAYS_VISIBLE); // The previous IME should be finished |