tasn pushed a commit to branch efl-1.17.

http://git.enlightenment.org/core/efl.git/commit/?id=7ac3dbbfe376792edd902e2380795f0bc2466012

commit 7ac3dbbfe376792edd902e2380795f0bc2466012
Author: Tom Hacohen <t...@stosb.com>
Date:   Fri Feb 26 09:34:36 2016 +0000

    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.
---
 src/tests/evas/evas_test_textblock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/evas/evas_test_textblock.c 
b/src/tests/evas/evas_test_textblock.c
index 332a658..0f1ac08 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -3644,11 +3644,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();
 }

-- 


Reply via email to