Skip to content
Snippets Groups Projects
Commit ba1cd8a4 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Fix test failur on pre-L devices"

parents 36713e57 05c05399
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment