Evas tests: More textblock style padding tests.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jul 2011 09:04:04 +0000 (09:04 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jul 2011 09:04:04 +0000 (09:04 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61272 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/evas_test_textblock.c

index 8824353..3000d82 100644 (file)
@@ -843,9 +843,10 @@ START_TEST(evas_textblock_style)
    evas_object_textblock_size_formatted_get(tb, &nw, &nh);
    fail_if((w >= nw) || (h >= nh));
 
+   /* Style padding. */
    evas_object_textblock_text_markup_set(tb, "Test");
    evas_object_textblock_style_insets_get(tb, &l, &r, &t, &b);
-//   fail_if((l != 0) || (r != 0) || (t != 0) || (b != 0));
+   fail_if((l != 0) || (r != 0) || (t != 0) || (b != 0));
 
    evas_object_textblock_text_markup_set(tb, "<style=shadow>Test</>");
    evas_object_textblock_style_insets_get(tb, &l, &r, &t, &b);
@@ -882,6 +883,13 @@ START_TEST(evas_textblock_style)
    evas_object_textblock_text_markup_set(tb, "<style=far_soft_shadow>Test</>");
    evas_object_textblock_style_insets_get(tb, &l, &r, &t, &b);
    fail_if((l != 0) || (r != 4) || (t != 0) || (b != 4));
+
+   /* Mixed style padding */
+   evas_object_textblock_text_markup_set(tb,
+         "<style=far_shadow>Test</><style=far_soft_shadow>Test</>");
+   evas_object_textblock_style_insets_get(tb, &l, &r, &t, &b);
+   fail_if((l != 1) || (r != 4) || (t != 1) || (b != 4));
+
    END_TB_TEST();
 }
 END_TEST