summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-23 09:34:52 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-12 16:04:48 +0100
commitcc777c05f8b1b1a3b3259bba033aa8753b1d6109 (patch)
treec26edd5777b55f1c9e330af87893c4a7640f27b0
parent63e20ed28d721c8e7d61113e67917fd9d4d0586c (diff)
tests/layout: modify api ordering test to verify theme signal emission
ensure that signals queued during construction are always emitted Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11162
-rw-r--r--src/tests/elementary/efl_ui_test_layout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_layout.c b/src/tests/elementary/efl_ui_test_layout.c
index 86f4b1e..4d6e7c8 100644
--- a/src/tests/elementary/efl_ui_test_layout.c
+++ b/src/tests/elementary/efl_ui_test_layout.c
@@ -195,14 +195,19 @@ EFL_END_TEST
195EFL_START_TEST(efl_ui_layout_test_api_ordering) 195EFL_START_TEST(efl_ui_layout_test_api_ordering)
196{ 196{
197 Evas_Object *win, *box; 197 Evas_Object *win, *box;
198 int count = 0;
198 const char text_text[] = "test text"; 199 const char text_text[] = "test text";
199 200
200 win = win_add(NULL, "layout", EFL_UI_WIN_TYPE_BASIC); 201 win = win_add(NULL, "layout", EFL_UI_WIN_TYPE_BASIC);
201 box = efl_add(EFL_UI_BOX_CLASS, win); 202 box = efl_add(EFL_UI_BOX_CLASS, win);
202 Eo *layout = efl_add(EFL_UI_BUTTON_CLASS, win, 203 Eo *layout = efl_add(EFL_UI_BUTTON_CLASS, win,
204 efl_layout_signal_callback_add(efl_added, "efl,content,set", "efl", &count, (void*)event_callback_single_call_int_data, NULL),
205 efl_ui_widget_style_set(efl_added, "anchor"),
203 efl_content_set(efl_added, box), 206 efl_content_set(efl_added, box),
204 efl_text_set(efl_added, text_text) 207 efl_text_set(efl_added, text_text)
205 ); 208 );
209 ecore_main_loop_iterate();
210 ck_assert_int_eq(count, 1);
206 ck_assert_ptr_eq(efl_content_get(layout), box); 211 ck_assert_ptr_eq(efl_content_get(layout), box);
207 ck_assert_str_eq(efl_text_get(layout), text_text); 212 ck_assert_str_eq(efl_text_get(layout), text_text);
208} 213}