devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5cf095dd3d8fc8e5390c056f323063a3c23ee2a8

commit 5cf095dd3d8fc8e5390c056f323063a3c23ee2a8
Author: Christopher Michael <[email protected]>
Date:   Mon Jul 22 08:57:33 2019 -0400

    tests/ecore_wl2: Add test for ecore_wl2_window_output_find
    
    ref T8016
---
 src/tests/ecore_wl2/ecore_wl2_test_window.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c 
b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index 1bc1e9086c..bcf264f9c1 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -92,6 +92,23 @@ EFL_START_TEST(wl2_window_rotation_get)
 }
 EFL_END_TEST
 
+EFL_START_TEST(wl2_window_output_find)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+   Ecore_Wl2_Output *out;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   out = ecore_wl2_window_output_find(win);
+   ck_assert(out != NULL);
+}
+EFL_END_TEST
+
 void
 ecore_wl2_test_window(TCase *tc)
 {
@@ -102,5 +119,6 @@ ecore_wl2_test_window(TCase *tc)
         tcase_add_test(tc, wl2_window_surface_get);
         tcase_add_test(tc, wl2_window_surface_id_get);
         tcase_add_test(tc, wl2_window_rotation_get);
+        tcase_add_test(tc, wl2_window_output_find);
      }
 }

-- 


Reply via email to