tasn pushed a commit to branch evas-1.7. http://git.enlightenment.org/legacy/evas.git/commit/?id=15ac9d35a9baf9e7d42c01fd40ac86f959d6e0fd
commit 15ac9d35a9baf9e7d42c01fd40ac86f959d6e0fd Author: Tom Hacohen <t...@stosb.com> Date: Tue Nov 19 15:47:06 2013 +0000 Evas textblock tests: Added a complex markup set/get test. This should make things more robust as thing tests a lot. --- src/tests/evas_test_textblock.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/tests/evas_test_textblock.c b/src/tests/evas_test_textblock.c index ab74a68..2e5a6bb 100644 --- a/src/tests/evas_test_textblock.c +++ b/src/tests/evas_test_textblock.c @@ -1766,6 +1766,41 @@ START_TEST(evas_textblock_text_getters) free(tmp); } + /* complex markup set/get */ + { + const char *text = + "This is an entry widget in this window that<ps/>" + "uses markup <b>like this</> for styling and<ps/>" + "formatting <em>like this</>, as well as<ps/>" + "<a href=X><link>links in the text</></a>, so enter text<ps/>" + "in here to edit it. By the way, links are<ps/>" + "called <a href=anc-02>Anchors</a> so you will need<ps/>" + "to refer to them this way.<ps/>" + "<ps/>" + + "Also you can stick in items with (relsize + ascent): " + "<item relsize=16x16 vsize=ascent href=emoticon/evil-laugh></item>" + " (full) " + "<item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>" + " (to the left)<ps/>" + + "Also (size + ascent): " + "<item size=16x16 vsize=ascent href=emoticon/haha></item>" + " (full) " + "<item size=16x16 vsize=full href=emoticon/happy-panting></item>" + " (before this)<ps/>" + + "And as well (absize + ascent): " + "<item absize=64x64 vsize=ascent href=emoticon/knowing-grin></item>" + " (full) " + "<item absize=64x64 vsize=full href=emoticon/not-impressed></item>" + " or even paths to image files on disk too like: " + "<item absize=96x128 vsize=full href=file://bla/images/sky_01.jpg></item>" + " ... end."; + evas_object_textblock_text_markup_set(tb, text); + ck_assert_str_eq(text, evas_object_textblock_text_markup_get(tb)); + } + END_TB_TEST(); } END_TEST --