Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05c05399 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Fix test failur on pre-L devices

This is a follow up CL for Iafbf2877db393dbd040295c21d.

BUG: 16029304
Change-Id: I0bfdcf901adb3178e6b9201d598ce9f588dcd253
parent 7f14894f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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));