devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=782738122196c731e75a66d54703c9fb5f063eb4

commit 782738122196c731e75a66d54703c9fb5f063eb4
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Jul 29 09:17:20 2019 -0400

    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
---
 src/bin/elementary/test_win_modal.c | 5 +++++
 1 file changed, 5 insertions(+)

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
 {
    Evas_Object *parent_win, *win, *bg, *txt, *bx, *bt;
 
+   if (!obj)
+     {
+        fprintf(stderr, "The modal win test can only be run by clicking the 
button for it in the main elementary_test window.\n");
+        return;
+     }
    parent_win = _parent_win_get(obj);
 
    win = elm_win_add(parent_win, "modal", ELM_WIN_BASIC);

-- 


Reply via email to