summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-22 08:37:08 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-22 08:37:39 -0400
commit11de06e5b80192c8fe38e428a081be00a8f48fcf (patch)
treefc56babff7971a46fd88577f6cc6277d86d0e8ee
parentccfd74f17ab0cf98d64a7091160f52d98af70436 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_surface_get function
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index 4608f767a6..8bcca9efeb 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -41,6 +41,23 @@ EFL_START_TEST(wl2_window_new)
41} 41}
42EFL_END_TEST 42EFL_END_TEST
43 43
44EFL_START_TEST(wl2_window_surface_get)
45{
46 Ecore_Wl2_Display *disp;
47 Ecore_Wl2_Window *win;
48 struct wl_surface *surf;
49
50 disp = _display_connect();
51 ck_assert(disp != NULL);
52
53 win = _window_create(disp);
54 ck_assert(win != NULL);
55
56 surf = ecore_wl2_window_surface_get(win);
57 ck_assert(surf != NULL);
58}
59EFL_END_TEST
60
44void 61void
45ecore_wl2_test_window(TCase *tc) 62ecore_wl2_test_window(TCase *tc)
46{ 63{
@@ -48,5 +65,6 @@ ecore_wl2_test_window(TCase *tc)
48 { 65 {
49 /* window tests can only run if there is an existing compositor */ 66 /* window tests can only run if there is an existing compositor */
50 tcase_add_test(tc, wl2_window_new); 67 tcase_add_test(tc, wl2_window_new);
68 tcase_add_test(tc, wl2_window_surface_get);
51 } 69 }
52} 70}