summaryrefslogtreecommitdiff
path: root/src/tests/edje
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-05-28 21:39:15 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-28 21:50:19 -0700
commitbb2037748a763b5e6025812d13750f5ed5e933e0 (patch)
tree2db4f3646ed4a5b4f5917d62e1282e4f574d8b73 /src/tests/edje
parent608575f5bdbbfa77a7ce9278807a12a04c64858f (diff)
edje: a new testcase for what was happening before
Summary: this checks explicitly that the lifecycle is alive. Depends on D6223 Reviewers: cedric, zmike, JackDanielZ Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6224 Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Diffstat (limited to 'src/tests/edje')
-rw-r--r--src/tests/edje/edje_test_edje.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index 6ce93a4..103910d 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -381,6 +381,26 @@ EFL_START_TEST(edje_test_swallows)
381} 381}
382EFL_END_TEST 382EFL_END_TEST
383 383
384EFL_START_TEST(edje_test_swallows_lifetime)
385{
386 Evas *evas = EDJE_TEST_INIT_EVAS();
387 Evas_Object *ly, *o1;
388
389 ly = edje_object_add(evas);
390 fail_unless(edje_object_file_set(ly, test_layout_get("test_swallows.edj"), "test_group"));
391
392 fail_unless(edje_object_part_exists(ly, "swallow"));
393
394 o1 = edje_object_add(ly);
395 fail_if(!edje_object_part_swallow(ly, "swallow", o1));
396
397 evas_object_del(ly);
398 fail_if(!efl_parent_get(o1));
399
400 EDJE_TEST_FREE_EVAS();
401}
402EFL_END_TEST
403
384EFL_START_TEST(edje_test_swallows_eoapi) 404EFL_START_TEST(edje_test_swallows_eoapi)
385{ 405{
386 Evas *evas = EDJE_TEST_INIT_EVAS(); 406 Evas *evas = EDJE_TEST_INIT_EVAS();
@@ -1037,6 +1057,7 @@ void edje_test_edje(TCase *tc)
1037 tcase_add_test(tc, edje_test_size_class); 1057 tcase_add_test(tc, edje_test_size_class);
1038 tcase_add_test(tc, edje_test_color_class); 1058 tcase_add_test(tc, edje_test_color_class);
1039 tcase_add_test(tc, edje_test_swallows); 1059 tcase_add_test(tc, edje_test_swallows);
1060 tcase_add_test(tc, edje_test_swallows_lifetime);
1040 tcase_add_test(tc, edje_test_swallows_eoapi); 1061 tcase_add_test(tc, edje_test_swallows_eoapi);
1041 tcase_add_test(tc, edje_test_access); 1062 tcase_add_test(tc, edje_test_access);
1042 tcase_add_test(tc, edje_test_box); 1063 tcase_add_test(tc, edje_test_box);