diff options
author | Mattias Petersson <mattias.petersson@sonyericsson.com> | 2011-05-27 11:16:41 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2014-11-07 12:27:28 +0000 |
commit | fc2bd335d14ba14795cd2955f189536a53a0021f (patch) | |
tree | b84e0aae15bde70f0e32de1f03beb65fc99b2e42 | |
parent | 59701b9ba5c453e327bc0e6873a9f6ff87a10391 (diff) | |
download | frameworks_base-fc2bd335d14ba14795cd2955f189536a53a0021f.zip frameworks_base-fc2bd335d14ba14795cd2955f189536a53a0021f.tar.gz frameworks_base-fc2bd335d14ba14795cd2955f189536a53a0021f.tar.bz2 |
Fix for CharSequenceCreator test case
The test case testCharSequenceCreator() in TextUtilsTest fails
because the data position is not reset before calling
createFromParcel().
Change-Id: I6d5cc093ff65019ab0d2191bb0bd9c10ae49612b
-rw-r--r-- | core/tests/coretests/src/android/text/TextUtilsTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/tests/coretests/src/android/text/TextUtilsTest.java b/core/tests/coretests/src/android/text/TextUtilsTest.java index d494c5d..5a6ef30 100644 --- a/core/tests/coretests/src/android/text/TextUtilsTest.java +++ b/core/tests/coretests/src/android/text/TextUtilsTest.java @@ -353,6 +353,7 @@ public class TextUtilsTest extends TestCase { assertNull("null CharSequence should generate null from parcel", text); p = Parcel.obtain(); TextUtils.writeToParcel("test", p, 0); + p.setDataPosition(0); text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(p); assertEquals("conversion to/from parcel failed", "test", text); } |