summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2014-05-21 10:36:27 +0100
committerTom Hacohen <tom@stosb.com>2014-05-21 10:42:11 +0100
commit316b35a0c64cfcd38c04d37d1e73b0533fd7387c (patch)
tree408234b061c5c78817c8456fe948a4f929330d90
parent43276730721acf229b046f92873ac1144a68c932 (diff)
evas/text: add text ellipsis test case for ligatures special case.
Summary: Some fonts has combination information for "ff". When harfbuzz is enabled with the font, evas text ellipsis logic can be broken. Reviewers: tasn, woohyun, cedric Reviewed By: tasn CC: cedric, herdsman Differential Revision: https://phab.enlightenment.org/D870 Some comment/commit message improvements by TAsn.
-rw-r--r--src/tests/evas/evas_test_text.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_text.c b/src/tests/evas/evas_test_text.c
index a113e33a4d..e969050161 100644
--- a/src/tests/evas/evas_test_text.c
+++ b/src/tests/evas/evas_test_text.c
@@ -189,6 +189,9 @@ _test_ellipsis(Evas_Object *to, const char *buf, const char *font, Evas_Font_Siz
189 evas_object_geometry_get(to, NULL, NULL, &w, NULL); 189 evas_object_geometry_get(to, NULL, NULL, &w, NULL);
190 /* If it's gotten way too small, it means we have an issue. */ 190 /* If it's gotten way too small, it means we have an issue. */
191 fail_if(w < 100); 191 fail_if(w < 100);
192
193 w = evas_object_text_horiz_advance_get(to);
194 fail_if(w < 100);
192 } 195 }
193} 196}
194 197
@@ -218,6 +221,9 @@ START_TEST(evas_text_ellipsis)
218 _test_ellipsis(to, buf, font, size, 0.5); 221 _test_ellipsis(to, buf, font, size, 0.5);
219 _test_ellipsis(to, buf, font, size, 1.0); 222 _test_ellipsis(to, buf, font, size, 1.0);
220 223
224 /* Ligatures */
225 buf = "Fffffffffffffffffffffffffffffffffff";
226 _test_ellipsis(to, buf, font, size, 0.0);
221 END_TEXT_TEST(); 227 END_TEXT_TEST();
222} 228}
223END_TEST 229END_TEST