diff options
author | 2014-07-09 16:49:33 +0900 | |
---|---|---|
committer | 2014-07-09 16:49:33 +0900 | |
commit | 05c053992b6ff47826cbb404c6ff025ccd7f9904 (patch) | |
tree | 983748bd4c92c2742572c94cdb2da335adb886a2 /tests/src/com/android/inputmethod/compat | |
parent | 7f14894f2f38f8dade230c53dd5a1410c40f7e0d (diff) | |
download | latinime-05c053992b6ff47826cbb404c6ff025ccd7f9904.tar.gz latinime-05c053992b6ff47826cbb404c6ff025ccd7f9904.tar.xz latinime-05c053992b6ff47826cbb404c6ff025ccd7f9904.zip |
Fix test failur on pre-L devices
This is a follow up CL for Iafbf2877db393dbd040295c21d.
BUG: 16029304
Change-Id: I0bfdcf901adb3178e6b9201d598ce9f588dcd253
Diffstat (limited to 'tests/src/com/android/inputmethod/compat')
-rw-r--r-- | tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java b/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java index e71d77460..5721ed1ff 100644 --- a/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java +++ b/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java @@ -57,7 +57,8 @@ public class TextInfoCompatUtilsTests extends AndroidTestCase { TEST_SEQUENCE_NUMBER); final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START, TEST_CHAR_SEQUENCE_END); - final CharSequence actualCharSequence = TextInfoCompatUtils.getCharSequence(textInfo, null); + final CharSequence actualCharSequence = + TextInfoCompatUtils.getCharSequence(textInfo, textInfo.getText()); // This should be valid even if TextInfo#getCharSequence is not supported. assertTrue(TextUtils.equals(expectedSpanned, actualCharSequence)); |