summaryrefslogtreecommitdiff
path: root/src/tests/evas
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-12-16 19:10:36 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-16 19:11:33 +0100
commit68e9bf9c14b58c682d5151f73b21f920905bd320 (patch)
tree351f1d0023bf69840d9adf3de002d70f4c622d4b /src/tests/evas
parent16efc25ceb3a7fbf4605fb808748dcdbc004e6fb (diff)
efl_canvas_textblock: allow style_apply with wrap=none
Summary: 1- passing style_apply("wrap=none") had no effect previously, and now disable wraping 2- style_all_get() by default return "wrap=word", but now return "wrap=none" refer to T8523 Reviewers: segfaultxavi, woohyun, cedric Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10888
Diffstat (limited to 'src/tests/evas')
-rw-r--r--src/tests/evas/evas_test_textblock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 16fd38f437..94849a57e1 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4628,6 +4628,7 @@ EFL_START_TEST(efl_canvas_textblock_style)
4628 fail_if(!strstr(style, "font=DejaVuSans,UnDotum,malayalam")); 4628 fail_if(!strstr(style, "font=DejaVuSans,UnDotum,malayalam"));
4629 // default value 4629 // default value
4630 fail_if(!strstr(style, "font_width=normal")); 4630 fail_if(!strstr(style, "font_width=normal"));
4631 fail_if(!strstr(style, "wrap=none"));
4631 4632
4632 // from functions 4633 // from functions
4633 fail_if(!strstr(style, "font_weight=extrabold")); 4634 fail_if(!strstr(style, "font_weight=extrabold"));
@@ -4641,6 +4642,9 @@ EFL_START_TEST(efl_canvas_textblock_style)
4641 efl_canvas_textblock_style_apply(txt, "font_width=ultracondensed"); 4642 efl_canvas_textblock_style_apply(txt, "font_width=ultracondensed");
4642 ck_assert_int_eq(efl_text_font_width_get(txt), EFL_TEXT_FONT_WIDTH_ULTRACONDENSED); 4643 ck_assert_int_eq(efl_text_font_width_get(txt), EFL_TEXT_FONT_WIDTH_ULTRACONDENSED);
4643 4644
4645 efl_canvas_textblock_style_apply(txt, "wrap=word");
4646 ck_assert_int_eq(efl_text_wrap_get(txt), EFL_TEXT_FORMAT_WRAP_WORD);
4647
4644 efl_canvas_textblock_style_apply(txt, "wrap=none"); 4648 efl_canvas_textblock_style_apply(txt, "wrap=none");
4645 ck_assert_int_eq(efl_text_wrap_get(txt), EFL_TEXT_FORMAT_WRAP_NONE); 4649 ck_assert_int_eq(efl_text_wrap_get(txt), EFL_TEXT_FORMAT_WRAP_NONE);
4646 4650