summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-22 09:02:10 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-22 09:02:10 -0400
commit28c232d770bf373e674756ff5c6e2824723515b7 (patch)
tree0ffe018d0fb82c64c011278c07098cf4ec8c0432
parenta7cc7730afceab996e6616e5412db95048fcb3c1 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_display_get
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c16
1 files changed, 16 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 64e67d3c47..fea733e980 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -126,6 +126,21 @@ EFL_START_TEST(wl2_window_aux_hints_supported_get)
126} 126}
127EFL_END_TEST 127EFL_END_TEST
128 128
129EFL_START_TEST(wl2_window_display_get)
130{
131 Ecore_Wl2_Display *disp;
132 Ecore_Wl2_Window *win;
133
134 disp = _display_connect();
135 ck_assert(disp != NULL);
136
137 win = _window_create(disp);
138 ck_assert(win != NULL);
139
140 ck_assert(ecore_wl2_window_display_get(win) != NULL);
141}
142EFL_END_TEST
143
129void 144void
130ecore_wl2_test_window(TCase *tc) 145ecore_wl2_test_window(TCase *tc)
131{ 146{
@@ -138,5 +153,6 @@ ecore_wl2_test_window(TCase *tc)
138 tcase_add_test(tc, wl2_window_rotation_get); 153 tcase_add_test(tc, wl2_window_rotation_get);
139 tcase_add_test(tc, wl2_window_output_find); 154 tcase_add_test(tc, wl2_window_output_find);
140 tcase_add_test(tc, wl2_window_aux_hints_supported_get); 155 tcase_add_test(tc, wl2_window_aux_hints_supported_get);
156 tcase_add_test(tc, wl2_window_display_get);
141 } 157 }
142} 158}