summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-19 09:31:46 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-19 09:44:45 -0500
commit8195368929be462427e430455e66b9d7dc952622 (patch)
treec408cd5b80846043ac55fa0895acce25054649aa /src/tests
parent68ea9f1a7178c1d6a8b6a1ef283f48f602b3d14b (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_type functions
ref T8016
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c20
1 files changed, 20 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 e68d8c1..9c6462c 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -310,6 +310,25 @@ EFL_START_TEST(wl2_window_geometry)
310} 310}
311EFL_END_TEST 311EFL_END_TEST
312 312
313EFL_START_TEST(wl2_window_type)
314{
315 Ecore_Wl2_Display *disp;
316 Ecore_Wl2_Window *win;
317 Ecore_Wl2_Window_Type type = ECORE_WL2_WINDOW_TYPE_NONE;
318
319 disp = _display_connect();
320 ck_assert(disp != NULL);
321
322 win = _window_create(disp);
323 ck_assert(win != NULL);
324
325 ecore_wl2_window_type_set(win, ECORE_WL2_WINDOW_TYPE_TOPLEVEL);
326
327 type = ecore_wl2_window_type_get(win);
328 fail_if(type != ECORE_WL2_WINDOW_TYPE_TOPLEVEL);
329}
330EFL_END_TEST
331
313void 332void
314ecore_wl2_test_window(TCase *tc) 333ecore_wl2_test_window(TCase *tc)
315{ 334{
@@ -332,5 +351,6 @@ ecore_wl2_test_window(TCase *tc)
332 tcase_add_test(tc, wl2_window_rotation_app); 351 tcase_add_test(tc, wl2_window_rotation_app);
333 tcase_add_test(tc, wl2_wm_window_rotation_app); 352 tcase_add_test(tc, wl2_wm_window_rotation_app);
334 tcase_add_test(tc, wl2_window_geometry); 353 tcase_add_test(tc, wl2_window_geometry);
354 tcase_add_test(tc, wl2_window_type);
335 } 355 }
336} 356}