aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-11-19 15:47:06 +0000
committerTom Hacohen <tom@stosb.com>2013-11-19 15:56:49 +0000
commit61264aebe3d15cd524371454a9cca7ec0a9e3198 (patch)
tree115f5c92b3b27474897679e7966811edcab15d03
parentAdd several missing Config.cmake.in (diff)
downloadefl-61264aebe3d15cd524371454a9cca7ec0a9e3198.tar.gz
Evas textblock tests: Added a complex markup set/get test.
This should make things more robust as thing tests a lot.
-rw-r--r--src/tests/evas/evas_test_textblock.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index fa08800612..e9d8c032a3 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