tests/elm: improve click_part() to handle non-swallow parts

swallow parts have content, other parts do not

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9320
This commit is contained in:
Mike Blumenkrantz 2019-07-12 14:35:35 -04:00 committed by Marcel Hollerbach
parent afb2daa996
commit 564ba9b96c
1 changed files with 6 additions and 1 deletions

View File

@ -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);