Merge "Fix test failur on pre-L devices"

main
Yohei Yukawa 2014-07-09 08:24:01 +00:00 committed by Android (Google) Code Review
commit ba1cd8a44a
1 changed files with 2 additions and 1 deletions

View File

@ -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));