From 6ae3ed79f11d540a6101b45ddbb087cde776bb26 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 12 Jul 2011 11:40:22 +0000 Subject: [PATCH] Evas tests: Added textblock replacement char tests. SVN revision: 61278 --- legacy/evas/src/tests/evas_test_textblock.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/tests/evas_test_textblock.c b/legacy/evas/src/tests/evas_test_textblock.c index 34c7e73..38dcb6cc 100644 --- a/legacy/evas/src/tests/evas_test_textblock.c +++ b/legacy/evas/src/tests/evas_test_textblock.c @@ -491,7 +491,7 @@ END_TEST /* Various textblock stuff */ START_TEST(evas_textblock_various) { - Evas_Coord w, h; + Evas_Coord w, h, bw, bh; START_TB_TEST(); const char *buf = "Thistextblockhasalotoflines."; evas_object_textblock_text_markup_set(tb, buf); @@ -499,6 +499,14 @@ START_TEST(evas_textblock_various) /* 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)); + + /* Replacement char */ + evas_object_textblock_text_markup_set(tb, "*"); + evas_object_textblock_size_formatted_get(tb, &bw, &bh); + evas_object_textblock_replace_char_set(tb, "*"); + evas_object_textblock_text_markup_set(tb, "|"); + evas_object_textblock_size_formatted_get(tb, &w, &h); + fail_if((w != bw) || (h != bh)); END_TB_TEST(); } END_TEST -- 2.7.4