Evas tests: Add another textblock test.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 13:39:46 +0000 (13:39 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 13:39:46 +0000 (13:39 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61240 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/evas_test_textblock.c

index 88707cb..c291bbd 100644 (file)
@@ -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>font_size=40</><ps>"
+         "<color=#F210B3FF>color=#F210B3FF</><ps>"
+         "<underline=single underline_color=#A2B3C4>underline=single underline_color=#A2B3C4</><ps>"
+         "<underline=double underline_color=#F00 underline2_color=#00F>underline=double underline_color=#F00 underline2_color=#00F</><ps>"
+         "<style=outline outline_color=#F0FA>style=outline outline_color=#F0FA</><ps>"
+         "<style=shadow shadow_color=#F0F>style=shadow shadow_color=#F0F</><ps>"
+         "<style=glow glow_color=#BBB>style=glow glow_color=#BBB</><ps>"
+         "<style=glow glow2_color=#0F0>style=glow glow2_color=#0F0</><ps>"
+         "<style=glow color=#fff glow2_color=#fe87 glow_color=#f214>style=glow color=#fff glow2_color=#fe87 glow_color=#f214</><ps>"
+         "<backing=on backing_color=#00F>backing=on backing_color=#00F</><ps>"
+         "<strikethrough=on strikethrough_color=#FF0>strikethrough=on strikethrough_color=#FF0</><ps>"
+         "<align=right>align=right</><ps>"
+         "<backing=on backing_color=#F008 valign=0.0>valign=0.0</><ps>"
+         "<backing=on backing_color=#0F08 tabstops=50>tabstops=<\\t></>50</><ps>"
+         "<backing=on backing_color=#00F8 linesize=40>linesize=40</><ps>"
+         "<backing=on backing_color=#F0F8 linerelsize=200%>linerelsize=200%</><ps>"
+         "<backing=on backing_color=#0FF8 linegap=20>linegap=20</><ps>"
+         "<backing=on backing_color=#FF08 linerelgap=100%>linerelgap=100%</><ps>");
+
+   /* Force a relayout */
+   evas_object_textblock_size_formatted_get(tb, NULL, NULL);
+
    END_TB_TEST();
 }
 END_TEST