tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=61264aebe3d15cd524371454a9cca7ec0a9e3198
commit 61264aebe3d15cd524371454a9cca7ec0a9e3198 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/evas_test_textblock.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c index fa08800..e9d8c03 100644 --- a/src/tests/evas/evas_test_textblock.c +++ b/src/tests/evas/evas_test_textblock.c @@ -2169,6 +2169,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 --