summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-12-30 13:27:13 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-12-30 13:27:13 +0900
commit64d160da0a2479abd250d404bda775bc4fb680ba (patch)
tree04d53af7bf57f491555adeb4921b2a85a1809f16 /src/tests/evas
parent7b105b33bb12321e970f01ae76e02b6efa22e61d (diff)
efl.text.style: underline enum rename + underline method fix
Summary: underline methods was not working + fix enums names Reviewers: woohyun, segfaultxavi, bu5hm4n, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7945 Differential Revision: https://phab.enlightenment.org/D10975
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 6ade455ddc..ef830e8507 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4936,6 +4936,23 @@ EFL_START_TEST(efl_canvas_textblock_style)
4936} 4936}
4937EFL_END_TEST 4937EFL_END_TEST
4938 4938
4939EFL_START_TEST(efl_text_style)
4940{
4941 START_EFL_CANVAS_TEXTBLOCK_TEST();
4942
4943 efl_text_underline_type_set(txt, EFL_TEXT_STYLE_UNDERLINE_TYPE_NONE);
4944 ck_assert_int_eq(efl_text_underline_type_get(txt), EFL_TEXT_STYLE_UNDERLINE_TYPE_NONE);
4945 efl_text_underline_type_set(txt, EFL_TEXT_STYLE_UNDERLINE_TYPE_SINGLE);
4946 ck_assert_int_eq(efl_text_underline_type_get(txt), EFL_TEXT_STYLE_UNDERLINE_TYPE_SINGLE);
4947 efl_text_underline_type_set(txt, EFL_TEXT_STYLE_UNDERLINE_TYPE_DOUBLE);
4948 ck_assert_int_eq(efl_text_underline_type_get(txt), EFL_TEXT_STYLE_UNDERLINE_TYPE_DOUBLE);
4949 efl_text_underline_type_set(txt, EFL_TEXT_STYLE_UNDERLINE_TYPE_DASHED);
4950 ck_assert_int_eq(efl_text_underline_type_get(txt), EFL_TEXT_STYLE_UNDERLINE_TYPE_DASHED);
4951
4952 END_EFL_CANVAS_TEXTBLOCK_TEST();
4953}
4954EFL_END_TEST
4955
4939void evas_test_textblock(TCase *tc) 4956void evas_test_textblock(TCase *tc)
4940{ 4957{
4941 tcase_add_test(tc, evas_textblock_simple); 4958 tcase_add_test(tc, evas_textblock_simple);
@@ -4972,5 +4989,6 @@ void evas_test_textblock(TCase *tc)
4972 tcase_add_test(tc, efl_canvas_textblock_markup_invalid_escape); 4989 tcase_add_test(tc, efl_canvas_textblock_markup_invalid_escape);
4973 tcase_add_test(tc, efl_text_font); 4990 tcase_add_test(tc, efl_text_font);
4974 tcase_add_test(tc, efl_canvas_textblock_style); 4991 tcase_add_test(tc, efl_canvas_textblock_style);
4992 tcase_add_test(tc, efl_text_style);
4975} 4993}
4976 4994