summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-02-26 09:34:36 +0000
committerTom Hacohen <tom@stosb.com>2016-02-26 09:36:44 +0000
commit84fd52921e86df91f2a5e305fb38583a8460040a (patch)
tree8c2b6f11adef85a442d28cd5f578aac1a67ce747
parent17e3f8c1a675d0848763b9d8d790530087dccd21 (diff)
downloadefl-84fd52921e86df91f2a5e305fb38583a8460040a.tar.gz
Evas textblock tests: Fix wrong test suite tests.
The tests were assuming that textblock returns a sanitised utf8 string. This is not always correct, because textblock may cache and return the set utf8 markup if the text hasn't changed since the last set.
-rw-r--r--src/tests/evas/evas_test_textblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 379bc2eafd..cfa0aeebd6 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -3642,11 +3642,11 @@ START_TEST(evas_textblock_escaping)
const char *buf = "This &middot; is";
evas_object_textblock_text_markup_set(tb, buf);
- fail_if(strcmp(evas_object_textblock_text_markup_get(tb), "This \xc2\xb7 is"));
+ fail_if(strcmp(evas_object_textblock_text_markup_get(tb), buf));
buf = "This &nbsp; is";
evas_object_textblock_text_markup_set(tb, buf);
- fail_if(strcmp(evas_object_textblock_text_markup_get(tb), "This \xc2\xa0 is"));
+ fail_if(strcmp(evas_object_textblock_text_markup_get(tb), buf));
END_TB_TEST();
}