summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:55:41 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:55:41 -0500
commit96e148b2310e7d01df3734ded75f9299a6d64a21 (patch)
tree1c9346d120d952346af0a988d234e2cb3dfaf94b
parent82135245839583829fd78712809ea5f5e6e827e5 (diff)
tests/ecore_wl2: Modify ecore_wl2_window_rotation test
Small patch to modify ecore_wl2_window_rotation test to support ecore_wl2_window_rotation_set function ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index 1a4385a..2d7d516 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -64,7 +64,7 @@ EFL_START_TEST(wl2_window_surface_test)
64} 64}
65EFL_END_TEST 65EFL_END_TEST
66 66
67EFL_START_TEST(wl2_window_rotation_get) 67EFL_START_TEST(wl2_window_rotation)
68{ 68{
69 Ecore_Wl2_Display *disp; 69 Ecore_Wl2_Display *disp;
70 Ecore_Wl2_Window *win; 70 Ecore_Wl2_Window *win;
@@ -78,6 +78,11 @@ EFL_START_TEST(wl2_window_rotation_get)
78 78
79 rot = ecore_wl2_window_rotation_get(win); 79 rot = ecore_wl2_window_rotation_get(win);
80 ck_assert_int_ge(rot, 0); 80 ck_assert_int_ge(rot, 0);
81
82 ecore_wl2_window_rotation_set(win, 90);
83
84 rot = ecore_wl2_window_rotation_get(win);
85 fail_if(rot != 90);
81} 86}
82EFL_END_TEST 87EFL_END_TEST
83 88
@@ -271,7 +276,7 @@ ecore_wl2_test_window(TCase *tc)
271 /* window tests can only run if there is an existing compositor */ 276 /* window tests can only run if there is an existing compositor */
272 tcase_add_test(tc, wl2_window_new); 277 tcase_add_test(tc, wl2_window_new);
273 tcase_add_test(tc, wl2_window_surface_test); 278 tcase_add_test(tc, wl2_window_surface_test);
274 tcase_add_test(tc, wl2_window_rotation_get); 279 tcase_add_test(tc, wl2_window_rotation);
275 tcase_add_test(tc, wl2_window_output_find); 280 tcase_add_test(tc, wl2_window_output_find);
276 if (getenv("E_START")) 281 if (getenv("E_START"))
277 tcase_add_test(tc, wl2_window_aux_hints_supported_get); 282 tcase_add_test(tc, wl2_window_aux_hints_supported_get);