summaryrefslogtreecommitdiff
path: root/src/tests/ecore_wl2/ecore_wl2_test_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ecore_wl2/ecore_wl2_test_window.c')
-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 d47f314b61..c5604802a4 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -442,6 +442,28 @@ EFL_START_TEST(wl2_window_role)
442} 442}
443EFL_END_TEST 443EFL_END_TEST
444 444
445EFL_START_TEST(wl2_window_input_region)
446{
447 Ecore_Wl2_Display *disp;
448 Ecore_Wl2_Window *win;
449 int x, y, w, h;
450
451 disp = _display_connect();
452 ck_assert(disp != NULL);
453
454 win = _window_create(disp);
455 ck_assert(win != NULL);
456
457 ecore_wl2_window_input_region_set(win, 10, 10, 100, 100);
458
459 ecore_wl2_window_input_region_get(win, &x, &y, &w, &h);
460 fail_if(x != 10);
461 fail_if(y != 10);
462 fail_if(w != 100);
463 fail_if(h != 100);
464}
465EFL_END_TEST
466
445void 467void
446ecore_wl2_test_window(TCase *tc) 468ecore_wl2_test_window(TCase *tc)
447{ 469{
@@ -470,5 +492,6 @@ ecore_wl2_test_window(TCase *tc)
470 tcase_add_test(tc, wl2_window_class); 492 tcase_add_test(tc, wl2_window_class);
471 tcase_add_test(tc, wl2_window_title); 493 tcase_add_test(tc, wl2_window_title);
472 tcase_add_test(tc, wl2_window_role); 494 tcase_add_test(tc, wl2_window_role);
495 tcase_add_test(tc, wl2_window_input_region);
473 } 496 }
474} 497}