summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-12-03 10:49:37 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-12-03 10:54:10 -0500
commit0bfdc94df82f416aebb1c151c01c336e28b02bfc (patch)
treef571d778a6154a694ecd5bddc768114af715c261
parentb3ba1340360b424658ea0d602f481a93fc27593c (diff)
downloadefl-0bfdc94df82f416aebb1c151c01c336e28b02bfc.tar.gz
tests/ecore_wl2: Add test for ecore_wl2_window_class functions
Summary: tests/ecore_wl2: Add test for ecore_wl2_window_class functions ref T8016 ref D10743 Reviewers: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8016 Differential Revision: https://phab.enlightenment.org/D10759
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c20
1 files changed, 20 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 e678ac4954..1db3078965 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -369,6 +369,25 @@ EFL_START_TEST(wl2_window_aspect)
}
EFL_END_TEST
+EFL_START_TEST(wl2_window_class)
+{
+ Ecore_Wl2_Display *disp;
+ Ecore_Wl2_Window *win;
+ const char *class;
+
+ disp = _display_connect();
+ ck_assert(disp != NULL);
+
+ win = _window_create(disp);
+ ck_assert(win != NULL);
+
+ ecore_wl2_window_class_set(win, "TEST");
+ class = ecore_wl2_window_class_get(win);
+
+ fail_if(strcmp(class, "TEST"));
+}
+EFL_END_TEST
+
EFL_START_TEST(wl2_window_available_rotation)
{
Ecore_Wl2_Display *disp;
@@ -421,5 +440,6 @@ ecore_wl2_test_window(TCase *tc)
tcase_add_test(tc, wl2_window_activated);
tcase_add_test(tc, wl2_window_available_rotation);
tcase_add_test(tc, wl2_window_aspect);
+ tcase_add_test(tc, wl2_window_class);
}
}