summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-08 10:36:16 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-08 10:36:16 -0500
commit0bb0d862cebdfbb6b1f7f96f3ed3a62b102e55fb (patch)
tree096cc5a792c4dadd863beb652cdc986bfd5fda63
parent59ec4ea1b349a86339b1efade3ef19b76920898d (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_opaque_region functions
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c23
1 files changed, 23 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 c5604802a4..54d7f8bfd9 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -464,6 +464,28 @@ EFL_START_TEST(wl2_window_input_region)
464} 464}
465EFL_END_TEST 465EFL_END_TEST
466 466
467EFL_START_TEST(wl2_window_opaque_region)
468{
469 Ecore_Wl2_Display *disp;
470 Ecore_Wl2_Window *win;
471 int x, y, w, h;
472
473 disp = _display_connect();
474 ck_assert(disp != NULL);
475
476 win = _window_create(disp);
477 ck_assert(win != NULL);
478
479 ecore_wl2_window_opaque_region_set(win, 10, 10, 100, 100);
480
481 ecore_wl2_window_opaque_region_get(win, &x, &y, &w, &h);
482 fail_if(x != 10);
483 fail_if(y != 10);
484 fail_if(w != 100);
485 fail_if(h != 100);
486}
487EFL_END_TEST
488
467void 489void
468ecore_wl2_test_window(TCase *tc) 490ecore_wl2_test_window(TCase *tc)
469{ 491{
@@ -493,5 +515,6 @@ ecore_wl2_test_window(TCase *tc)
493 tcase_add_test(tc, wl2_window_title); 515 tcase_add_test(tc, wl2_window_title);
494 tcase_add_test(tc, wl2_window_role); 516 tcase_add_test(tc, wl2_window_role);
495 tcase_add_test(tc, wl2_window_input_region); 517 tcase_add_test(tc, wl2_window_input_region);
518 tcase_add_test(tc, wl2_window_opaque_region);
496 } 519 }
497} 520}