summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorot904697 <ot_lin.wu@mediatek.com>2022-07-28 14:01:17 +0800
committerchuanghua zhao <Chuanghua.Zhao@mediatek.com>2022-08-29 04:52:12 +0000
commit314f1441da4447918af8d0af60a12c53ca8a78be (patch)
treeb2d3f5406efda6f81e2455bd8b6de526abaf74fe
parente2fbef15eb8589ad1832a3b47ca10262ddcbf50a (diff)
downloadbase-314f1441da4447918af8d0af60a12c53ca8a78be.tar.gz
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
-rw-r--r--tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java b/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java
index 47f87d6d75ff..573b3b695a90 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 @@ public final class NotificationTest {
@After
public void tearDown() {
mNotificationManager.cancelAll();
+ mUiDevice.pressHome();
}
@Test