summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/edje/edje_test_edje.c6
-rw-r--r--src/tests/elementary/elm_test_layout.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index 97d395461a..2b2b47a594 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -393,17 +393,17 @@ START_TEST(edje_test_swallows_eoapi)
393 393
394 394
395 o1 = eo_add(EDJE_OBJECT_CLASS, ly); 395 o1 = eo_add(EDJE_OBJECT_CLASS, ly);
396 fail_if(!efl_content_set(ly, "swallow", o1)); 396 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1));
397 ck_assert_ptr_eq(eo_parent_get(o1), ly); 397 ck_assert_ptr_eq(eo_parent_get(o1), ly);
398 398
399 efl_content_remove(ly, o1); 399 efl_content_remove(ly, o1);
400 ck_assert_ptr_eq(eo_parent_get(o1), evas_common_evas_get(o1)); 400 ck_assert_ptr_eq(eo_parent_get(o1), evas_common_evas_get(o1));
401 401
402 fail_if(!efl_content_set(ly, "swallow", o1)); 402 fail_if(!efl_content_set(efl_part(ly, "swallow"), o1));
403 ck_assert_ptr_eq(eo_parent_get(o1), ly); 403 ck_assert_ptr_eq(eo_parent_get(o1), ly);
404 404
405 o2 = eo_add(EDJE_OBJECT_CLASS, ly); 405 o2 = eo_add(EDJE_OBJECT_CLASS, ly);
406 fail_if(!efl_content_set(ly, "swallow", o2)); 406 fail_if(!efl_content_set(efl_part(ly, "swallow"), o2));
407 ck_assert_ptr_eq(eo_parent_get(o2), ly); 407 ck_assert_ptr_eq(eo_parent_get(o2), ly);
408 /* o1 is deleted at this point. */ 408 /* o1 is deleted at this point. */
409 ck_assert_ptr_eq(eo_parent_get(o1), evas_common_evas_get(o1)); 409 ck_assert_ptr_eq(eo_parent_get(o1), evas_common_evas_get(o1));
diff --git a/src/tests/elementary/elm_test_layout.c b/src/tests/elementary/elm_test_layout.c
index 6a9e4a3bb2..7c0ba94e33 100644
--- a/src/tests/elementary/elm_test_layout.c
+++ b/src/tests/elementary/elm_test_layout.c
@@ -38,17 +38,17 @@ START_TEST(elm_layout_swallows)
38 evas_object_show(ly); 38 evas_object_show(ly);
39 39
40 bt = eo_add(ELM_BUTTON_CLASS, ly); 40 bt = eo_add(ELM_BUTTON_CLASS, ly);
41 fail_if(!efl_content_set(ly, "element1", bt)); 41 fail_if(!efl_content_set(efl_part(ly, "element1"), bt));
42 ck_assert_ptr_eq(eo_parent_get(bt), ly); 42 ck_assert_ptr_eq(eo_parent_get(bt), ly);
43 43
44 bt = efl_content_unset(ly, "element1"); 44 bt = efl_content_unset(efl_part(ly, "element1"));
45 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt)); 45 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt));
46 46
47 fail_if(!efl_content_set(ly, "element1", bt)); 47 fail_if(!efl_content_set(efl_part(ly, "element1"), bt));
48 ck_assert_ptr_eq(eo_parent_get(bt), ly); 48 ck_assert_ptr_eq(eo_parent_get(bt), ly);
49 49
50 bt2 = eo_add(ELM_BUTTON_CLASS, ly); 50 bt2 = eo_add(ELM_BUTTON_CLASS, ly);
51 fail_if(!efl_content_set(ly, "element1", bt2)); 51 fail_if(!efl_content_set(efl_part(ly, "element1"), bt2));
52 ck_assert_ptr_eq(eo_parent_get(bt2), ly); 52 ck_assert_ptr_eq(eo_parent_get(bt2), ly);
53 /* bt is deleted at this point. */ 53 /* bt is deleted at this point. */
54 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt)); 54 ck_assert_ptr_eq(eo_parent_get(bt), evas_common_evas_get(bt));