From 9924c133c1bb488884fb4a6f1690d5f202f2be6e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 11 Jul 2011 13:39:46 +0000 Subject: [PATCH] Evas tests: Add another textblock test. SVN revision: 61240 --- legacy/evas/src/tests/evas_test_textblock.c | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/legacy/evas/src/tests/evas_test_textblock.c b/legacy/evas/src/tests/evas_test_textblock.c index 88707cbaad..c291bbd2eb 100644 --- a/legacy/evas/src/tests/evas_test_textblock.c +++ b/legacy/evas/src/tests/evas_test_textblock.c @@ -670,6 +670,32 @@ START_TEST(evas_textblock_formats) fail_if((w >= nw) || (h >= nh)); } + /* Various formats, just verify there's no seg, we can't really + * verify them visually, well, we can some of them. Possibly in the + * future we will */ + evas_object_textblock_text_markup_set(tb, + "font_size=40" + "color=#F210B3FF" + "underline=single underline_color=#A2B3C4" + "underline=double underline_color=#F00 underline2_color=#00F" + "style=outline outline_color=#F0FA" + "style=shadow shadow_color=#F0F" + "style=glow glow_color=#BBB" + "style=glow glow2_color=#0F0" + "style=glow color=#fff glow2_color=#fe87 glow_color=#f214" + "backing=on backing_color=#00F" + "strikethrough=on strikethrough_color=#FF0" + "align=right" + "valign=0.0" + "tabstops=<\\t>50" + "linesize=40" + "linerelsize=200%" + "linegap=20" + "linerelgap=100%"); + + /* Force a relayout */ + evas_object_textblock_size_formatted_get(tb, NULL, NULL); + END_TB_TEST(); } END_TEST