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:41:29 +0100
commite4158510bda9f4194cd3884404087af2b5491b6b (patch)
tree1674c765e846ab5150e34ec82165c0e16096b064
parent02f24d76e14feaddb9891f323991de019ce5947a (diff)
downloadefl-e4158510bda9f4194cd3884404087af2b5491b6b.tar.gz
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
evas_object_geometry_get(to, NULL, NULL, &w, NULL);
/* If it's gotten way too small, it means we have an issue. */
fail_if(w < 100);
+
+ w = evas_object_text_horiz_advance_get(to);
+ fail_if(w < 100);
}
}
@@ -218,6 +221,9 @@ START_TEST(evas_text_ellipsis)
_test_ellipsis(to, buf, font, size, 0.5);
_test_ellipsis(to, buf, font, size, 1.0);
+ /* Ligatures */
+ buf = "Fffffffffffffffffffffffffffffffffff";
+ _test_ellipsis(to, buf, font, size, 0.0);
END_TEXT_TEST();
}
END_TEST