forked from enlightenment/efl
eo: add tests for efl_property_reflection_exist.
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7938
This commit is contained in:
parent
11d2b39b44
commit
2b2bf31264
|
@ -52,9 +52,13 @@ EFL_START_TEST(eo_test_reflection_simple)
|
||||||
efl_property_reflection_set(simple, "simple_a", numb_val);
|
efl_property_reflection_set(simple, "simple_a", numb_val);
|
||||||
ck_assert_int_eq(simple_a_get(simple), numb);
|
ck_assert_int_eq(simple_a_get(simple), numb);
|
||||||
|
|
||||||
|
ck_assert_int_eq(efl_property_reflection_exist(simple, "simple_a"), EINA_TRUE);
|
||||||
|
|
||||||
ck_assert_int_eq(efl_property_reflection_set(simple, "should_fail", useless_val),
|
ck_assert_int_eq(efl_property_reflection_set(simple, "should_fail", useless_val),
|
||||||
EINA_ERROR_NOT_IMPLEMENTED);
|
EINA_ERROR_NOT_IMPLEMENTED);
|
||||||
|
|
||||||
|
ck_assert_int_eq(efl_property_reflection_exist(simple, "should_fail"), EINA_FALSE);
|
||||||
|
|
||||||
simple_a_set(simple, 22);
|
simple_a_set(simple, 22);
|
||||||
Eina_Value res = efl_property_reflection_get(simple, "simple_a");
|
Eina_Value res = efl_property_reflection_get(simple, "simple_a");
|
||||||
eina_value_int_convert(&res, &number_ref);
|
eina_value_int_convert(&res, &number_ref);
|
||||||
|
|
Loading…
Reference in New Issue