summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-05-24 18:14:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-05-24 18:50:58 +0900
commit35fc3f5130197ca1b32d7aa900fe5ac98fe95a21 (patch)
treebe302fb9fabd44e5baeac4e06816afd1edf91d92
parentba43e12722bcdaef38ceb82fcd7eada7802ff11d (diff)
Edje: Test proxy objects more
This tests that a cached object is not reused invalidly if it was ref'ed.
-rw-r--r--src/tests/edje/data/test_table.edc22
-rw-r--r--src/tests/edje/edje_test_edje.c4
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 {
111 } 111 }
112 } 112 }
113 } 113 }
114 table { "table2";
115 desc {
116 table {
117 homogeneous: TABLE;
118 padding: 10 10;
119 }
120 }
121 table {
122 items {
123 item {
124 type: GROUP;
125 source: "item1";
126 position: 0 0;
127 span: 1 1;
128 weight: 1 1;
129 align: -1 -1;
130 }
131 }
132 }
133 }
114 } 134 }
115 } 135 }
116} \ No newline at end of file 136}
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)
701 proxy = eo_ref(efl_part(obj, "table")); 701 proxy = eo_ref(efl_part(obj, "table"));
702 fail_if(!proxy); 702 fail_if(!proxy);
703 fail_if(!efl_pack_clear(proxy)); 703 fail_if(!efl_pack_clear(proxy));
704 fail_if(efl_content_count(efl_part(obj, "table")) != 4);
704 fail_if(!efl_pack_clear(proxy)); 705 fail_if(!efl_pack_clear(proxy));
705 fail_if(!efl_pack_clear(proxy)); 706 fail_if(efl_content_count(efl_part(obj, "table2")) != 1);
707 fail_if(efl_content_count(proxy) != 4);
706 eo_unref(proxy); 708 eo_unref(proxy);
707 709
708 EDJE_TEST_FREE_EVAS(); 710 EDJE_TEST_FREE_EVAS();