devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8510de33c37bdf138d98b52994cabe90130d835d

commit 8510de33c37bdf138d98b52994cabe90130d835d
Author: Christopher Michael <[email protected]>
Date:   Mon Jul 22 08:40:34 2019 -0400

    tests/ecore_wl2: Add test case for ecore_wl2_window_surface_id_get
    
    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 8bcca9efeb..45773198e3 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -58,6 +58,23 @@ EFL_START_TEST(wl2_window_surface_get)
 }
 EFL_END_TEST
 
+EFL_START_TEST(wl2_window_surface_id_get)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+   int id = -1;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   id = ecore_wl2_window_surface_id_get(win);
+   ck_assert_int_lt(id, 0);
+}
+EFL_END_TEST
+
 void
 ecore_wl2_test_window(TCase *tc)
 {
@@ -66,5 +83,6 @@ ecore_wl2_test_window(TCase *tc)
         /* window tests can only run if there is an existing compositor */
         tcase_add_test(tc, wl2_window_new);
         tcase_add_test(tc, wl2_window_surface_get);
+        tcase_add_test(tc, wl2_window_surface_id_get);
      }
 }

-- 


Reply via email to