From: Enlightenment S. <no-...@en...> - 2011-07-11 15:27:59
|
Log: Evas tests: More textblock tests. Author: tasn Date: 2011-07-11 08:27:53 -0700 (Mon, 11 Jul 2011) New Revision: 61250 Trac: http://trac.enlightenment.org/e/changeset/61250 Modified: trunk/evas/src/tests/evas_test_textblock.c Modified: trunk/evas/src/tests/evas_test_textblock.c =================================================================== --- trunk/evas/src/tests/evas_test_textblock.c 2011-07-11 15:19:33 UTC (rev 61249) +++ trunk/evas/src/tests/evas_test_textblock.c 2011-07-11 15:27:53 UTC (rev 61250) @@ -346,6 +346,21 @@ } END_TEST +/* Various textblock stuff */ +START_TEST(evas_textblock_various) +{ + Evas_Coord w, h; + START_TB_TEST(); + const char *buf = "This<ps>textblock<ps>has<ps>a<ps>lot<ps>of<ps>lines<ps>."; + evas_object_textblock_text_markup_set(tb, buf); + evas_object_textblock_size_formatted_get(tb, &w, &h); + /* Move outside of the screen so it'll have to search for the correct + * paragraph and etc. */ + evas_object_move(tb, -(w / 2), -(h / 2)); + END_TB_TEST(); +} +END_TEST + /* Various geometries. e.g. range geometry. */ START_TEST(evas_textblock_geometries) { @@ -868,7 +883,7 @@ END_TEST /* Aux evas stuff, such as scale. */ -START_TEST(evas_textblock_aux) +START_TEST(evas_textblock_evas) { Evas_Coord w, h, sw, sh; START_TB_TEST(); @@ -959,11 +974,12 @@ tcase_add_test(tc, evas_textblock_size); tcase_add_test(tc, evas_textblock_editing); tcase_add_test(tc, evas_textblock_style); - tcase_add_test(tc, evas_textblock_aux); + tcase_add_test(tc, evas_textblock_evas); tcase_add_test(tc, evas_textblock_text_getters); tcase_add_test(tc, evas_textblock_formats); tcase_add_test(tc, evas_textblock_escaping); tcase_add_test(tc, evas_textblock_set_get); tcase_add_test(tc, evas_textblock_geometries); + tcase_add_test(tc, evas_textblock_various); } |