mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix test failur on pre-L devices
This is a follow up CL for Iafbf2877db393dbd040295c21d. BUG: 16029304 Change-Id: I0bfdcf901adb3178e6b9201d598ce9f588dcd253
This commit is contained in:
parent
7f14894f2f
commit
05c053992b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user