commit | 19a0a4ec915b595d37a03eebe06b609b55eed7e2 | [log] [tgz] |
---|---|---|
author | ot904697 <ot_lin.wu@mediatek.com> | Thu Jul 28 14:01:17 2022 +0800 |
committer | Robert Chou <robertchou@google.com> | Wed Sep 07 03:16:46 2022 +0000 |
tree | 371acfb7dd930a5be7fb7d9ab55ffc9fb18c89a0 | |
parent | 60403848997e359f5ef79da8befba0477cc57536 [diff] |
Activity gain focus failed in InputMethodStressTest After the test is completed, the notification is not closed, so that subsequent test cannot get the focus. Close notification in tearDown to solve the issue. Bug: 241723484 Test: run InputMethodStressTest pass Change-Id: I876173e83488e18a884d8bc180f9681e726fff1d
diff --git a/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java b/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java index 47f87d6..573b3b69 100644 --- a/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java +++ b/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java
@@ -102,6 +102,7 @@ @After public void tearDown() { mNotificationManager.cancelAll(); + mUiDevice.pressHome(); } @Test