forked from enlightenment/efl
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:
parent
ba43e12722
commit
35fc3f5130
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue