summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-07-18 08:51:28 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-07-29 11:17:35 -0700
commitf7ce771e3243e19f8a12672ea2be752dedccbcf6 (patch)
tree46ea86bbb22e62e5f26af489151c8d145318e98e /src/tests
parent7927023fc7a3aeebbb570f4e5cc0be36b99218c9 (diff)
evas_object_textblock: add support for variation sequences
update font processing to handle variation sequences unicodes to select proper glypg in respect to variation seqences Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9053
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/evas/evas_test_textblock.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index dc3f22d136..f826a481c7 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -1,6 +1,6 @@
1/* 1/*
2 * TODO: 2 * TODO:
3 * * Test different font lodaing mechanisms. 3 * * Test different font loading mechanisms.
4 */ 4 */
5 5
6#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
@@ -4129,6 +4129,22 @@ EFL_START_TEST(evas_textblock_obstacle)
4129} 4129}
4130EFL_END_TEST; 4130EFL_END_TEST;
4131 4131
4132EFL_START_TEST(evas_textblock_variation_sequence)
4133{
4134 START_TB_TEST();
4135 const char *str1 = "8&#xfe0f;&#x1f603;&#xfe0f;";
4136 const char *str2 = "8&#xfe0e;&#x1f603;&#xfe0e;";
4137 Evas_Coord fw, fh,fw_new, fh_new;
4138 evas_object_textblock_text_markup_set(tb, str1);
4139 evas_object_textblock_size_formatted_get(tb, &fw, &fh);
4140 evas_object_textblock_text_markup_set(tb, str2);
4141 evas_object_textblock_size_formatted_get(tb, &fw_new, &fh_new);
4142 fail_if(fw_new == fw && fh_new == fh);
4143
4144 END_TB_TEST();
4145}
4146EFL_END_TEST;
4147
4132#ifdef HAVE_HYPHEN 4148#ifdef HAVE_HYPHEN
4133static void 4149static void
4134_hyphenation_width_stress(Evas_Object *tb, Evas_Textblock_Cursor *cur) 4150_hyphenation_width_stress(Evas_Object *tb, Evas_Textblock_Cursor *cur)
@@ -4677,6 +4693,7 @@ void evas_test_textblock(TCase *tc)
4677 tcase_add_test(tc, evas_textblock_items); 4693 tcase_add_test(tc, evas_textblock_items);
4678 tcase_add_test(tc, evas_textblock_delete); 4694 tcase_add_test(tc, evas_textblock_delete);
4679 tcase_add_test(tc, evas_textblock_obstacle); 4695 tcase_add_test(tc, evas_textblock_obstacle);
4696 tcase_add_test(tc, evas_textblock_variation_sequence);
4680#ifdef HAVE_HYPHEN 4697#ifdef HAVE_HYPHEN
4681 tcase_add_test(tc, evas_textblock_hyphenation); 4698 tcase_add_test(tc, evas_textblock_hyphenation);
4682#endif 4699#endif