From 73f9ca62970062b08efce3c09613f7a30657dd9e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 2 Oct 2015 12:21:56 +0900 Subject: [PATCH] Edje tests: Test inheritance of flag no_render --- src/tests/edje/data/test_filters.edc | 12 ++++++++++++ src/tests/edje/edje_test_edje.c | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/src/tests/edje/data/test_filters.edc b/src/tests/edje/data/test_filters.edc index e1f8b57..a526758 100644 --- a/src/tests/edje/data/test_filters.edc +++ b/src/tests/edje/data/test_filters.edc @@ -64,6 +64,18 @@ collections { image.normal: "pnl.png"; } } + part { + "mask2"; + inherit: "mask"; + render; + desc { "default"; + rel1.relative: 0.0 0.8; + } + } + part { + "mask3"; + inherit: "mask"; + } proxy { "prxy"; desc { "default"; filter { diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c index 43eacdc..6cc6cb0 100644 --- a/src/tests/edje/edje_test_edje.c +++ b/src/tests/edje/edje_test_edje.c @@ -226,6 +226,12 @@ START_TEST(edje_test_filters) sub = edje_object_part_object_get(obj, "mask"); fail_if(!eo_do_ret(sub, b, evas_obj_no_render_get())); + /* check no_render inheritance */ + sub = edje_object_part_object_get(obj, "mask2"); + fail_if(eo_do_ret(sub, b, evas_obj_no_render_get())); + sub = edje_object_part_object_get(obj, "mask3"); + fail_if(!eo_do_ret(sub, b, evas_obj_no_render_get())); + /* text part: check filter status */ text = edje_object_part_object_get(obj, "text"); fail_if(!text); -- 2.7.4