summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c
index ece3078b52..37fa1e5817 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -124,6 +124,20 @@ EFL_START_TEST(wl2_display_globals_get)
124} 124}
125EFL_END_TEST 125EFL_END_TEST
126 126
127EFL_START_TEST(wl2_display_screen_size_get)
128{
129 Ecore_Wl2_Display *disp;
130 int w, h;
131
132 disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
133 ck_assert(disp != NULL);
134
135 ecore_wl2_display_screen_size_get(disp, &w, &h);
136 ck_assert_int_ne(w, 0);
137 ck_assert_int_ne(h, 0);
138}
139EFL_END_TEST
140
127void 141void
128ecore_wl2_test_display(TCase *tc) 142ecore_wl2_test_display(TCase *tc)
129{ 143{
@@ -146,5 +160,6 @@ ecore_wl2_test_display(TCase *tc)
146 tcase_add_test(tc, wl2_display_shm_get); 160 tcase_add_test(tc, wl2_display_shm_get);
147 tcase_add_test(tc, wl2_display_dmabuf_get); 161 tcase_add_test(tc, wl2_display_dmabuf_get);
148 tcase_add_test(tc, wl2_display_globals_get); 162 tcase_add_test(tc, wl2_display_globals_get);
163 tcase_add_test(tc, wl2_display_screen_size_get);
149 } 164 }
150} 165}