diff options
author | 2014-07-09 08:24:01 +0000 | |
---|---|---|
committer | 2014-07-02 21:09:42 +0000 | |
commit | ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3 (patch) | |
tree | 0890d0d1ea3980dc49943325be5816dd3bfd84e6 /tests/src | |
parent | 36713e5782dee0d82a28de5fddd2427a9c000089 (diff) | |
parent | 05c053992b6ff47826cbb404c6ff025ccd7f9904 (diff) | |
download | latinime-ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3.tar.gz latinime-ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3.tar.xz latinime-ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3.zip |
Merge "Fix test failur on pre-L devices"
Diffstat (limited to 'tests/src')
-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)); |