Fix worning and tests for edje text_class

Summary: This should fix the wornings and tests logic from previouse commit, diff D10692

Reviewers: ali.alzyod, segfaultxavi, woohyun

Reviewed By: segfaultxavi

Subscribers: cedric, #committers, #reviewers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11017
This commit is contained in:
a.srour 2020-01-07 14:21:46 +01:00 committed by Xavi Artigas
parent 62c9eb1791
commit d3dc7dc86e
1 changed files with 4 additions and 2 deletions

View File

@ -104,10 +104,12 @@ EFL_START_TEST(edje_test_textblock)
obj = edje_object_add(evas);
ck_assert(edje_object_file_set(obj, test_layout_get("test_textblock.edj"), "test_textblock"));
txt = edje_object_part_text_get(obj, "text");
ck_assert(txt || !strcmp(txt, "Bye"));
ck_assert_ptr_ne(txt, NULL);
ck_assert_int_eq(strcmp(txt, "Bye"), 0);
edje_object_part_text_set(obj, "text", buf);
txt = edje_object_part_text_get(obj, "text");
ck_assert(txt || !strcmp(txt, buf));
ck_assert_ptr_ne(txt, NULL);
ck_assert_int_eq(strcmp(txt, buf), 0);
Evas_Object *obj2 = edje_object_add(evas);
ck_assert(edje_object_file_set(obj2, test_layout_get("test_textblock.edj"), "test_tc_textblock"));