bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=426967c7781ccb7d5bb0aa3ddfdaa7055dd6a27e

commit 426967c7781ccb7d5bb0aa3ddfdaa7055dd6a27e
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Mar 31 12:57:28 2020 -0400

    tests/elm: add wrapper for forcing manual render in tests
    
    this can be useful when a test needs to immediately verify whether a render
    is occurring
    
    Reviewed-by: Stefan Schmidt <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11630
---
 src/tests/elementary/suite_helpers.c | 6 ++++++
 src/tests/elementary/suite_helpers.h | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/tests/elementary/suite_helpers.c 
b/src/tests/elementary/suite_helpers.c
index e6c6441957..a5d8b051de 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -821,3 +821,9 @@ write_key_sequence(Eo *obj, const char *seqence)
        ecore_main_loop_iterate();
     }
 }
+
+void
+force_render(Eo *win)
+{
+   _win_manual_render(win, NULL);
+}
diff --git a/src/tests/elementary/suite_helpers.h 
b/src/tests/elementary/suite_helpers.h
index cf7b1e7490..4afae79024 100644
--- a/src/tests/elementary/suite_helpers.h
+++ b/src/tests/elementary/suite_helpers.h
@@ -46,7 +46,7 @@ void event_callback_single_call_int_data(void *data, 
Evas_Object *obj EINA_UNUSE
 void event_callback_that_quits_the_main_loop_when_called();
 void event_callback_that_increments_an_int_when_called(void *data, Evas_Object 
*obj, void *event_info);
 
-
+void force_render(Eo *win);
 
 #define assert_object_size_eq(obj, width, height) \
 do \

-- 


Reply via email to