diff options
| author | 2025-02-22 02:16:19 +0100 | |
|---|---|---|
| committer | 2025-02-22 02:16:19 +0100 | |
| commit | cfa9828663f14f45cbd6007592a82919c139a2d2 (patch) | |
| tree | cba9d7c649c0efa6882e9cf849b663b8c1a32faf | |
| parent | 7bd784c73d91a23bf8adb706b1594ae28f957fc9 (diff) | |
Fix getUiObject assertion
This was temporarily flipped to always fail while verifying changes to
DumpOnFailure, but was not flipped back in [1].
[1]: I6dece3f39a2f3ee3273b6ef12e3314f807d3457f
Flag: EXEMPT testfix
Bug: 395783236
Test: atest InputMethodServiceTest#testBackButtonClick
Change-Id: Ifa2039950fcc52427a2bcbdd6800e2462a0be116
| -rw-r--r-- | services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java index 6e16d2972c42..2cd860ae6c12 100644 --- a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +++ b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java @@ -1294,7 +1294,7 @@ public class InputMethodServiceTest { mInstrumentation.waitForIdleSync(); final var postScreenshot = mInstrumentation.getUiAutomation().takeScreenshot(); mDumpOnFailure.dumpOnFailure("post-getUiObject", postScreenshot); - assertWithMessage("UiObject with " + bySelector + " was found").that(uiObject).isNull(); + assertWithMessage("UiObject with " + bySelector + " was found").that(uiObject).isNotNull(); return uiObject; } |