Edje: Test proxy objects more

This tests that a cached object is not reused invalidly if
it was ref'ed.
This commit is contained in:
Jean-Philippe Andre 2016-05-24 18:14:05 +09:00
parent ba43e12722
commit 35fc3f5130
2 changed files with 24 additions and 2 deletions

View File

@ -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;
}
}
}
}
}
}
}
}

View File

@ -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();