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

src/tests/evas_test_textblock.c

index 819fb2f..bf1c53f 100644 (file)
@@ -1065,6 +1065,14 @@ START_TEST(evas_textblock_set_get)
    fail_if(evas_object_textblock_bidi_delimiters_get(tb));
    evas_object_textblock_bidi_delimiters_set(tb, ",|");
    fail_if(strcmp(evas_object_textblock_bidi_delimiters_get(tb), ",|"));
+
+   /* Hinting */
+   evas_object_textblock_text_markup_set(tb, "This is<ps>a test<br>bla");
+   /* Force relayout */
+   evas_object_textblock_size_formatted_get(tb, NULL, NULL);
+   evas_font_hinting_set(evas, EVAS_FONT_HINTING_NONE);
+   evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
+   evas_font_hinting_set(evas, EVAS_FONT_HINTING_BYTECODE);
    END_TB_TEST();
 }
 END_TEST