summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-29 09:17:20 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-29 09:17:20 -0400
commit782738122196c731e75a66d54703c9fb5f063eb4 (patch)
tree5027d36ca2b597043719cf15df6b4dc7166c7a26 /src/bin
parent0bab8be791b7454f19d6b813fb005cd78333bd67 (diff)
elm_test/modal_win: handle case where test is not passed the main window
Summary: this test is not runnable when it is not triggered directly from pressing a button in the main window Reviewers: devilhorns Reviewed By: devilhorns Subscribers: devilhorns, bu5hm4n, cedric, #reviewers, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D9401
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test_win_modal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/elementary/test_win_modal.c b/src/bin/elementary/test_win_modal.c
index 8775eada5b..2a82a38d9a 100644
--- a/src/bin/elementary/test_win_modal.c
+++ b/src/bin/elementary/test_win_modal.c
@@ -27,6 +27,11 @@ test_win_modal(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_U
27{ 27{
28 Evas_Object *parent_win, *win, *bg, *txt, *bx, *bt; 28 Evas_Object *parent_win, *win, *bg, *txt, *bx, *bt;
29 29
30 if (!obj)
31 {
32 fprintf(stderr, "The modal win test can only be run by clicking the button for it in the main elementary_test window.\n");
33 return;
34 }
30 parent_win = _parent_win_get(obj); 35 parent_win = _parent_win_get(obj);
31 36
32 win = elm_win_add(parent_win, "modal", ELM_WIN_BASIC); 37 win = elm_win_add(parent_win, "modal", ELM_WIN_BASIC);