From 35fc3f5130197ca1b32d7aa900fe5ac98fe95a21 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 24 May 2016 18:14:05 +0900 Subject: [PATCH] Edje: Test proxy objects more This tests that a cached object is not reused invalidly if it was ref'ed. --- src/tests/edje/data/test_table.edc | 22 +++++++++++++++++++++- src/tests/edje/edje_test_edje.c | 4 +++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/tests/edje/data/test_table.edc b/src/tests/edje/data/test_table.edc index 6ba175c316..147d6df22e 100644 --- a/src/tests/edje/data/test_table.edc +++ b/src/tests/edje/data/test_table.edc @@ -111,6 +111,26 @@ collections { } } } + table { "table2"; + desc { + table { + homogeneous: TABLE; + padding: 10 10; + } + } + table { + items { + item { + type: GROUP; + source: "item1"; + position: 0 0; + span: 1 1; + weight: 1 1; + align: -1 -1; + } + } + } + } } } -} \ No newline at end of file +} diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c index 38a76ac6ff..97d395461a 100644 --- a/src/tests/edje/edje_test_edje.c +++ b/src/tests/edje/edje_test_edje.c @@ -701,8 +701,10 @@ START_TEST(edje_test_table_eoapi) proxy = eo_ref(efl_part(obj, "table")); fail_if(!proxy); fail_if(!efl_pack_clear(proxy)); + fail_if(efl_content_count(efl_part(obj, "table")) != 4); fail_if(!efl_pack_clear(proxy)); - fail_if(!efl_pack_clear(proxy)); + fail_if(efl_content_count(efl_part(obj, "table2")) != 1); + fail_if(efl_content_count(proxy) != 4); eo_unref(proxy); EDJE_TEST_FREE_EVAS();