summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-11 21:57:45 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-11 21:57:45 +0100
commitaabe29abc13e84e5cb449a2ddce79a2c880c90e8 (patch)
tree45419ab16893f817ce41e16afdaab180e9b19023 /src/tests
parentceb4c04d3b8f8eb94d63174b7b6f43641ea508a8 (diff)
Revert "ui.widget: fix theme_apply working in sub_object_add"
This only works with a new libcheck, but not with a old one, revisiting it. This reverts commit da0ff534716774b35a98c359e8c7fd7bdde7a3d2.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/efl_ui_test_widget.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/tests/elementary/efl_ui_test_widget.c b/src/tests/elementary/efl_ui_test_widget.c
index 221978bade..d5f9c4d525 100644
--- a/src/tests/elementary/efl_ui_test_widget.c
+++ b/src/tests/elementary/efl_ui_test_widget.c
@@ -188,37 +188,6 @@ EFL_START_TEST(efl_ui_test_widget_sub_object_add_del)
188} 188}
189EFL_END_TEST 189EFL_END_TEST
190 190
191EFL_START_TEST(efl_ui_test_widget_sub_object_theme_sync)
192{
193 State s;
194 Efl_Canvas_Layout *edje;
195
196 _small_ui(&s);
197 edje = elm_widget_resize_object_get(s.btn1);
198
199 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn1), 1.0);
200 ck_assert_double_eq(efl_gfx_entity_scale_get(edje), 1.0);
201 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn2), 1.0);
202
203 efl_gfx_entity_scale_set(s.win, 0.123);
204 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn1), 0.123);
205 ck_assert_double_eq(efl_gfx_entity_scale_get(edje), 0.123);
206 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn2), 0.123);
207
208 efl_ui_widget_sub_object_del(s.box, s.btn1);
209 efl_gfx_entity_scale_set(s.win, 0.456);
210 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn1), 1.0);
211 ck_assert_double_eq(efl_gfx_entity_scale_get(edje), 0.123);
212 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn2), 0.456);
213
214 efl_gfx_entity_scale_set(s.win, 0.789);
215 efl_ui_widget_sub_object_add(s.box, s.btn1);
216 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn1), 0.789);
217 ck_assert_double_eq(efl_gfx_entity_scale_get(edje), 0.789);
218 ck_assert_double_eq(efl_gfx_entity_scale_get(s.btn2), 0.789);
219}
220EFL_END_TEST
221
222void efl_ui_test_widget(TCase *tc) 191void efl_ui_test_widget(TCase *tc)
223{ 192{
224 tcase_add_test(tc, efl_ui_test_widget_parent_iterator); 193 tcase_add_test(tc, efl_ui_test_widget_parent_iterator);
@@ -227,5 +196,4 @@ void efl_ui_test_widget(TCase *tc)
227 tcase_add_test(tc, efl_ui_test_widget_iterator); 196 tcase_add_test(tc, efl_ui_test_widget_iterator);
228 tcase_add_test(tc, efl_ui_test_widget_sub_iterator); 197 tcase_add_test(tc, efl_ui_test_widget_sub_iterator);
229 tcase_add_test(tc, efl_ui_test_widget_sub_object_add_del); 198 tcase_add_test(tc, efl_ui_test_widget_sub_object_add_del);
230 tcase_add_test(tc, efl_ui_test_widget_sub_object_theme_sync);
231} 199}