bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=564ba9b96c4309db89a9cf9ba32da0b8dfc7257a

commit 564ba9b96c4309db89a9cf9ba32da0b8dfc7257a
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Jul 12 14:35:35 2019 -0400

    tests/elm: improve click_part() to handle non-swallow parts
    
    swallow parts have content, other parts do not
    
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D9320
---
 src/tests/elementary/suite_helpers.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/tests/elementary/suite_helpers.c 
b/src/tests/elementary/suite_helpers.c
index ee2efcb8d4..2e3f658fa2 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -405,7 +405,12 @@ void
 click_part(Eo *obj, const char *part)
 {
    Efl_Part *part_obj = efl_ref(efl_part(obj, part));
-   Eo *content = efl_content_get(part_obj);
+   Eo *content;
+
+   if (efl_canvas_layout_part_type_get(part_obj) == 
EFL_CANVAS_LAYOUT_PART_TYPE_SWALLOW)
+     content = efl_content_get(part_obj);
+   else
+     content = part_obj;
    click_object(content);
    if (efl_isa(content, EFL_LAYOUT_SIGNAL_INTERFACE))
      edje_object_message_signal_process(content);

-- 


Reply via email to