forked from enlightenment/efl
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.
This commit is contained in:
parent
8d9a883f3a
commit
7ac3dbbfe3
|
@ -3644,11 +3644,11 @@ START_TEST(evas_textblock_escaping)
|
|||
|
||||
const char *buf = "This · 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 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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue