summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/tests/elm_test_ctxpopup.c
diff options
context:
space:
mode:
authorZbigniew Kosinski <z.kosinski@samsung.com>2014-06-11 11:07:15 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-06-11 11:07:16 +0900
commit9ce23f0004d7c4b9f0755512327aa138c30dffb3 (patch)
treec5c1b2d81d75fe499f5762a8ab5c40fdc967edd9 /legacy/elementary/src/tests/elm_test_ctxpopup.c
parentdccab720a79e0bb5b983e999fbf88af7c2e7358b (diff)
atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster Differential Revision: https://phab.enlightenment.org/D930
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/tests/elm_test_ctxpopup.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/legacy/elementary/src/tests/elm_test_ctxpopup.c b/legacy/elementary/src/tests/elm_test_ctxpopup.c
new file mode 100644
index 0000000..cc744e6
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_ctxpopup.c
@@ -0,0 +1,33 @@
1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h"
3#endif
4
5#include <Elementary.h>
6#include "elm_suite.h"
7
8#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
9#include "elm_interface_atspi_accessible.h"
10#include "elm_interface_atspi_accessible.eo.h"
11
12
13START_TEST (elm_atspi_role_get)
14{
15 Evas_Object *win, *ctxpopup;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
20
21 ctxpopup = elm_ctxpopup_add(win);
22 eo_do(ctxpopup, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_POPUP_MENU);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_ctxpopup(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}