summaryrefslogtreecommitdiff
path: root/src
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 /src
parentf42f42a9a6092cf91b1f8d1b0e4213753048723d (diff)
Evas textblock tests: Added a complex markup set/get test.
This should make things more robust as thing tests a lot.
Diffstat (limited to 'src')
-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)
2169 free(tmp); 2169 free(tmp);
2170 } 2170 }
2171 2171
2172 /* complex markup set/get */
2173 {
2174 const char *text =
2175 "This is an entry widget in this window that<ps/>"
2176 "uses markup <b>like this</> for styling and<ps/>"
2177 "formatting <em>like this</>, as well as<ps/>"
2178 "<a href=X><link>links in the text</></a>, so enter text<ps/>"
2179 "in here to edit it. By the way, links are<ps/>"
2180 "called <a href=anc-02>Anchors</a> so you will need<ps/>"
2181 "to refer to them this way.<ps/>"
2182 "<ps/>"
2183
2184 "Also you can stick in items with (relsize + ascent): "
2185 "<item relsize=16x16 vsize=ascent href=emoticon/evil-laugh></item>"
2186 " (full) "
2187 "<item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>"
2188 " (to the left)<ps/>"
2189
2190 "Also (size + ascent): "
2191 "<item size=16x16 vsize=ascent href=emoticon/haha></item>"
2192 " (full) "
2193 "<item size=16x16 vsize=full href=emoticon/happy-panting></item>"
2194 " (before this)<ps/>"
2195
2196 "And as well (absize + ascent): "
2197 "<item absize=64x64 vsize=ascent href=emoticon/knowing-grin></item>"
2198 " (full) "
2199 "<item absize=64x64 vsize=full href=emoticon/not-impressed></item>"
2200 " or even paths to image files on disk too like: "
2201 "<item absize=96x128 vsize=full href=file://bla/images/sky_01.jpg></item>"
2202 " ... end.";
2203 evas_object_textblock_text_markup_set(tb, text);
2204 ck_assert_str_eq(text, evas_object_textblock_text_markup_get(tb));
2205 }
2206
2172 END_TB_TEST(); 2207 END_TB_TEST();
2173} 2208}
2174END_TEST 2209END_TEST