summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-10-23 19:08:10 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-10-23 19:08:10 +0200
commit9c571c8a3aa727f644689fe6e2956acc2fd9c7e8 (patch)
tree04479807c7d3fa4c6a13e61e63f43a7fc209c68e
parent079b1f05b15d896753a4b3d6f3a3c03ae198dd5e (diff)
-rw-r--r--src/tests/elementary/spec/efl_test_basics.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tests/elementary/spec/efl_test_basics.c b/src/tests/elementary/spec/efl_test_basics.c
index 047e07d..c011911 100644
--- a/src/tests/elementary/spec/efl_test_basics.c
+++ b/src/tests/elementary/spec/efl_test_basics.c
@@ -118,9 +118,38 @@ EFL_START_TEST(no_err_on_shutdown)
118} 118}
119EFL_END_TEST 119EFL_END_TEST
120 120
121EFL_START_TEST(correct_visibility_setting)
122{
123 Eo *checker = NULL;
124 efl_gfx_entity_visible_set(widget, EINA_TRUE);
125 checker = create_test_widget();
126 if (efl_isa(widget, EFL_PACK_INTERFACE))
127 {
128 efl_pack(widget, checker);
129 }
130 else if (efl_isa(widget, EFL_CONTENT_INTERFACE))
131 {
132 efl_content_set(widget, checker);
133 }
134 else
135 return;
136
137 if (checker)
138 ck_assert_int_eq(efl_gfx_entity_visible_get(checker), EINA_TRUE);
139
140 efl_gfx_entity_visible_set(widget, EINA_FALSE);
141 if (checker)
142 ck_assert_int_eq(efl_gfx_entity_visible_get(checker), EINA_FALSE);
143
144 efl_gfx_entity_visible_set(widget, EINA_TRUE);
145 if (checker)
146 ck_assert_int_eq(efl_gfx_entity_visible_get(checker), EINA_TRUE);
147}
148EFL_END_TEST
121void 149void
122efl_ui_widget_behavior_test(TCase *tc) 150efl_ui_widget_behavior_test(TCase *tc)
123{ 151{
124 tcase_add_test(tc, no_leaking_canvas_object); 152 tcase_add_test(tc, no_leaking_canvas_object);
125 tcase_add_test(tc, no_err_on_shutdown); 153 tcase_add_test(tc, no_err_on_shutdown);
154 tcase_add_test(tc, correct_visibility_setting);
126} 155}