summaryrefslogtreecommitdiff
path: root/src/tests/edje
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-02-12 11:55:11 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-27 21:20:33 +0100
commit4628021fe547214b81238a0b1d410240174313ff (patch)
treeaaeaa5fa7c0cb66392b327a3c325ade1b98a7354 /src/tests/edje
parent7bda677eb09d1495b0f33c50207eae50f86cb3ec (diff)
efl_container: remove content_remove
Most of classes implements Efl.Container.content_remove are just calling "unpack" except of "Efl.Canvas.Layout" and "Efl.Ui.Layout". This patch remove the asymmetrical API and add content_remove API of "Efl.Canvas.Layout" and "Efl.Ui.Layout" that child can be remove without efl_part APIs. ref T7576 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7913
Diffstat (limited to 'src/tests/edje')
-rw-r--r--src/tests/edje/edje_test_container.c2
-rw-r--r--src/tests/edje/edje_test_swallow.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/edje/edje_test_container.c b/src/tests/edje/edje_test_container.c
index 018de4d..11fc195 100644
--- a/src/tests/edje/edje_test_container.c
+++ b/src/tests/edje/edje_test_container.c
@@ -102,7 +102,7 @@ EFL_START_TEST(edje_test_box_eoapi)
102 fail_if(i != 3); 102 fail_if(i != 3);
103 eina_iterator_free(it); 103 eina_iterator_free(it);
104 104
105 fail_if(!efl_content_remove(efl_part(obj, "box"), sobjs[0])); 105 fail_if(!efl_pack_unpack(efl_part(obj, "box"), sobjs[0]));
106 fail_if(efl_content_count(efl_part(obj, "box")) != 2); 106 fail_if(efl_content_count(efl_part(obj, "box")) != 2);
107 fail_if(!efl_pack_unpack_at(efl_part(obj, "box"), 1)); 107 fail_if(!efl_pack_unpack_at(efl_part(obj, "box"), 1));
108 fail_if(efl_content_count(efl_part(obj, "box")) != 1); 108 fail_if(efl_content_count(efl_part(obj, "box")) != 1);
diff --git a/src/tests/edje/edje_test_swallow.c b/src/tests/edje/edje_test_swallow.c
index 0d08951..b8f13cf 100644
--- a/src/tests/edje/edje_test_swallow.c
+++ b/src/tests/edje/edje_test_swallow.c
@@ -107,7 +107,7 @@ EFL_START_TEST(edje_test_swallows_eoapi)
107 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1)); 107 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1));
108 ck_assert_ptr_eq(efl_parent_get(o1), ly); 108 ck_assert_ptr_eq(efl_parent_get(o1), ly);
109 109
110 efl_content_remove(ly, o1); 110 efl_canvas_layout_content_remove(ly, o1);
111 ck_assert_ptr_eq(efl_parent_get(o1), evas_object_evas_get(o1)); 111 ck_assert_ptr_eq(efl_parent_get(o1), evas_object_evas_get(o1));
112 112
113 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1)); 113 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1));