summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-12 14:35:35 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-16 14:48:48 +0200
commit564ba9b96c4309db89a9cf9ba32da0b8dfc7257a (patch)
treed8d8d5337c6f747fa325d45c7d11023f3a94a4a3
parentafb2daa99665796f2385e6ce6de93f98b53055c5 (diff)
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
-rw-r--r--src/tests/elementary/suite_helpers.c7
1 files changed, 6 insertions, 1 deletions
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
405click_part(Eo *obj, const char *part) 405click_part(Eo *obj, const char *part)
406{ 406{
407 Efl_Part *part_obj = efl_ref(efl_part(obj, part)); 407 Efl_Part *part_obj = efl_ref(efl_part(obj, part));
408 Eo *content = efl_content_get(part_obj); 408 Eo *content;
409
410 if (efl_canvas_layout_part_type_get(part_obj) == EFL_CANVAS_LAYOUT_PART_TYPE_SWALLOW)
411 content = efl_content_get(part_obj);
412 else
413 content = part_obj;
409 click_object(content); 414 click_object(content);
410 if (efl_isa(content, EFL_LAYOUT_SIGNAL_INTERFACE)) 415 if (efl_isa(content, EFL_LAYOUT_SIGNAL_INTERFACE))
411 edje_object_message_signal_process(content); 416 edje_object_message_signal_process(content);