summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-22 08:55:04 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-22 08:55:04 -0400
commitafe8414925f5f3ecb27a5e9e23760d93ffac3f75 (patch)
treecb419c20ea96b5d4682e0c23ca30d01f963b5f9a
parent8510de33c37bdf138d98b52994cabe90130d835d (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_rotation_get
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 45773198e3..1bc1e9086c 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -75,6 +75,23 @@ EFL_START_TEST(wl2_window_surface_id_get)
75} 75}
76EFL_END_TEST 76EFL_END_TEST
77 77
78EFL_START_TEST(wl2_window_rotation_get)
79{
80 Ecore_Wl2_Display *disp;
81 Ecore_Wl2_Window *win;
82 int rot = -1;
83
84 disp = _display_connect();
85 ck_assert(disp != NULL);
86
87 win = _window_create(disp);
88 ck_assert(win != NULL);
89
90 rot = ecore_wl2_window_rotation_get(win);
91 ck_assert_int_lt(rot, 0);
92}
93EFL_END_TEST
94
78void 95void
79ecore_wl2_test_window(TCase *tc) 96ecore_wl2_test_window(TCase *tc)
80{ 97{
@@ -84,5 +101,6 @@ ecore_wl2_test_window(TCase *tc)
84 tcase_add_test(tc, wl2_window_new); 101 tcase_add_test(tc, wl2_window_new);
85 tcase_add_test(tc, wl2_window_surface_get); 102 tcase_add_test(tc, wl2_window_surface_get);
86 tcase_add_test(tc, wl2_window_surface_id_get); 103 tcase_add_test(tc, wl2_window_surface_id_get);
104 tcase_add_test(tc, wl2_window_rotation_get);
87 } 105 }
88} 106}