diff options
author | Eric Fischer <enf@google.com> | 2009-07-01 18:03:09 -0700 |
---|---|---|
committer | Eric Fischer <enf@google.com> | 2009-07-01 18:04:23 -0700 |
commit | 1f0dac38df453035a8bd0205a23eecc44aa9d783 (patch) | |
tree | a4656aad31b58d980cab8f6fced70532c538484e /tests | |
parent | c08dd9e27e864c03f77c3b031812969f3f9a97b1 (diff) | |
download | frameworks_base-1f0dac38df453035a8bd0205a23eecc44aa9d783.zip frameworks_base-1f0dac38df453035a8bd0205a23eecc44aa9d783.tar.gz frameworks_base-1f0dac38df453035a8bd0205a23eecc44aa9d783.tar.bz2 |
Turn off kerning when testing TextUtils.ellipsize().
Otherwise, the different text measurement methods produce slightly
different results and cause the text to show different results for
Spanned vs. non-Spanned source strings.
Bug 1837826
Diffstat (limited to 'tests')
-rw-r--r-- | tests/AndroidTests/src/com/android/unit_tests/TextUtilsTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/TextUtilsTest.java b/tests/AndroidTests/src/com/android/unit_tests/TextUtilsTest.java index 51e841c..7720041 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/TextUtilsTest.java +++ b/tests/AndroidTests/src/com/android/unit_tests/TextUtilsTest.java @@ -276,6 +276,7 @@ public class TextUtilsTest extends TestCase { Spannable s3 = new SpannableString(s1); s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); TextPaint p = new TextPaint(); + p.setFlags(p.getFlags() & ~p.DEV_KERN_TEXT_FLAG); for (int i = 0; i < 100; i++) { for (int j = 0; j < 3; j++) { |