summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-22 08:57:33 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-22 08:57:33 -0400
commit5cf095dd3d8fc8e5390c056f323063a3c23ee2a8 (patch)
tree908b8c87d61a9f3e99550a85b16846e9687e3be4
parentafe8414925f5f3ecb27a5e9e23760d93ffac3f75 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_output_find
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 1bc1e9086c..bcf264f9c1 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -92,6 +92,23 @@ EFL_START_TEST(wl2_window_rotation_get)
92} 92}
93EFL_END_TEST 93EFL_END_TEST
94 94
95EFL_START_TEST(wl2_window_output_find)
96{
97 Ecore_Wl2_Display *disp;
98 Ecore_Wl2_Window *win;
99 Ecore_Wl2_Output *out;
100
101 disp = _display_connect();
102 ck_assert(disp != NULL);
103
104 win = _window_create(disp);
105 ck_assert(win != NULL);
106
107 out = ecore_wl2_window_output_find(win);
108 ck_assert(out != NULL);
109}
110EFL_END_TEST
111
95void 112void
96ecore_wl2_test_window(TCase *tc) 113ecore_wl2_test_window(TCase *tc)
97{ 114{
@@ -102,5 +119,6 @@ ecore_wl2_test_window(TCase *tc)
102 tcase_add_test(tc, wl2_window_surface_get); 119 tcase_add_test(tc, wl2_window_surface_get);
103 tcase_add_test(tc, wl2_window_surface_id_get); 120 tcase_add_test(tc, wl2_window_surface_id_get);
104 tcase_add_test(tc, wl2_window_rotation_get); 121 tcase_add_test(tc, wl2_window_rotation_get);
122 tcase_add_test(tc, wl2_window_output_find);
105 } 123 }
106} 124}