tests/ecore_wl2: Add test for ecore_wl2_window_floating_mode_get/set
authorChristopher Michael <cp.michael@samsung.com>
Tue, 12 Nov 2019 14:39:15 +0000 (09:39 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 13 Nov 2019 21:13:10 +0000 (06:13 +0900)
functions

ref T8016

src/tests/ecore_wl2/ecore_wl2_test_window.c

index 48b85d5..d70a3a8 100644 (file)
@@ -149,6 +149,25 @@ EFL_START_TEST(wl2_window_alpha)
 }
 EFL_END_TEST
 
+EFL_START_TEST(wl2_window_floating_mode)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+   Eina_Bool f = EINA_FALSE;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   ecore_wl2_window_floating_mode_set(win, EINA_TRUE);
+
+   f = ecore_wl2_window_floating_mode_get(win);
+   fail_if(f != EINA_TRUE);
+}
+EFL_END_TEST
+
 void
 ecore_wl2_test_window(TCase *tc)
 {
@@ -163,5 +182,6 @@ ecore_wl2_test_window(TCase *tc)
           tcase_add_test(tc, wl2_window_aux_hints_supported_get);
         tcase_add_test(tc, wl2_window_display_get);
         tcase_add_test(tc, wl2_window_alpha);
+        tcase_add_test(tc, wl2_window_floating_mode);
      }
 }