am ba1cd8a4: Merge "Fix test failur on pre-L devices"
* commit 'ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3': Fix test failur on pre-L devicesmain
commit
46111b79e6
|
@ -57,7 +57,8 @@ public class TextInfoCompatUtilsTests extends AndroidTestCase {
|
||||||
TEST_SEQUENCE_NUMBER);
|
TEST_SEQUENCE_NUMBER);
|
||||||
final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START,
|
final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START,
|
||||||
TEST_CHAR_SEQUENCE_END);
|
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.
|
// This should be valid even if TextInfo#getCharSequence is not supported.
|
||||||
assertTrue(TextUtils.equals(expectedSpanned, actualCharSequence));
|
assertTrue(TextUtils.equals(expectedSpanned, actualCharSequence));
|
||||||
|
|
Loading…
Reference in New Issue