diff options
author | 2014-07-09 08:51:27 +0000 | |
---|---|---|
committer | 2014-07-09 08:51:27 +0000 | |
commit | 46111b79e6f11ef47c430e8f7050d2151fce1130 (patch) | |
tree | 22790498142abb78c9d526f07b352c65de391c30 | |
parent | 0e550093245bb9870a6dc50fe2a512710671de60 (diff) | |
parent | ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3 (diff) | |
download | latinime-46111b79e6f11ef47c430e8f7050d2151fce1130.tar.gz latinime-46111b79e6f11ef47c430e8f7050d2151fce1130.tar.xz latinime-46111b79e6f11ef47c430e8f7050d2151fce1130.zip |
am ba1cd8a4: Merge "Fix test failur on pre-L devices"
* commit 'ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3':
Fix test failur on pre-L devices
-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)); |