summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/tests
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
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/Makefile.am60
-rw-r--r--legacy/elementary/src/tests/elm_suite.c58
-rw-r--r--legacy/elementary/src/tests/elm_suite.h58
-rw-r--r--legacy/elementary/src/tests/elm_test_actionslider.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_bg.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_box.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_bubble.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_button.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_calendar.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_check.c22
-rw-r--r--legacy/elementary/src/tests/elm_test_clock.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_colorselector.c22
-rw-r--r--legacy/elementary/src/tests/elm_test_conformant.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_ctxpopup.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_datetime.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_dayselector.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_diskselector.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_entry.c23
-rw-r--r--legacy/elementary/src/tests/elm_test_fileselector.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_fileselector_button.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_fileselector_entry.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_flip.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_flipselector.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_frame.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_gengrid.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_genlist.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_glview.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_grid.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_hover.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_hoversel.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_icon.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_image.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_index.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_inwin.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_label.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_layout.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_list.c22
-rw-r--r--legacy/elementary/src/tests/elm_test_map.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_mapbuf.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_menu.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_multibuttonentry.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_naviframe.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_notify.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_panel.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_panes.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_photo.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_photocam.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_player.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_plug.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_popup.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_prefs.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_progressbar.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_radio.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_scroller.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_segmentcontrol.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_separator.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_slider.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_slideshow.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_spinner.c34
-rw-r--r--legacy/elementary/src/tests/elm_test_table.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_thumb.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_toolbar.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_video.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_web.c33
-rw-r--r--legacy/elementary/src/tests/elm_test_win.c32
65 files changed, 2182 insertions, 2 deletions
diff --git a/legacy/elementary/src/tests/Makefile.am b/legacy/elementary/src/tests/Makefile.am
index 264da51ebc..dbd18c336f 100644
--- a/legacy/elementary/src/tests/Makefile.am
+++ b/legacy/elementary/src/tests/Makefile.am
@@ -11,7 +11,65 @@ elm_suite_SOURCES = \
11 elm_test_colorselector.c \ 11 elm_test_colorselector.c \
12 elm_test_entry.c \ 12 elm_test_entry.c \
13 elm_test_init.c \ 13 elm_test_init.c \
14 elm_test_list.c 14 elm_test_list.c \
15 elm_test_button.c \
16 elm_test_image.c \
17 elm_test_photo.c \
18 elm_test_actionslider.c \
19 elm_test_box.c \
20 elm_test_table.c \
21 elm_test_thumb.c \
22 elm_test_menu.c \
23 elm_test_photocam.c \
24 elm_test_win.c \
25 elm_test_icon.c \
26 elm_test_prefs.c \
27 elm_test_map.c \
28 elm_test_glview.c \
29 elm_test_web.c \
30 elm_test_toolbar.c \
31 elm_test_grid.c \
32 elm_test_diskselector.c \
33 elm_test_notify.c \
34 elm_test_mapbuf.c \
35 elm_test_flip.c \
36 elm_test_layout.c \
37 elm_test_slider.c \
38 elm_test_ctxpopup.c \
39 elm_test_separator.c \
40 elm_test_calendar.c \
41 elm_test_inwin.c \
42 elm_test_gengrid.c \
43 elm_test_radio.c \
44 elm_test_scroller.c \
45 elm_test_frame.c \
46 elm_test_datetime.c \
47 elm_test_player.c \
48 elm_test_bg.c \
49 elm_test_video.c \
50 elm_test_segmentcontrol.c \
51 elm_test_progressbar.c \
52 elm_test_fileselector.c \
53 elm_test_fileselector_button.c \
54 elm_test_fileselector_entry.c \
55 elm_test_hoversel.c \
56 elm_test_multibuttonentry.c \
57 elm_test_naviframe.c \
58 elm_test_popup.c \
59 elm_test_bubble.c \
60 elm_test_clock.c \
61 elm_test_conformant.c \
62 elm_test_dayselector.c \
63 elm_test_flipselector.c \
64 elm_test_genlist.c \
65 elm_test_hover.c \
66 elm_test_index.c \
67 elm_test_label.c \
68 elm_test_panel.c \
69 elm_test_panes.c \
70 elm_test_slideshow.c \
71 elm_test_spinner.c \
72 elm_test_plug.c
15 73
16elm_suite_CPPFLAGS = \ 74elm_suite_CPPFLAGS = \
17 -DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \ 75 -DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \
diff --git a/legacy/elementary/src/tests/elm_suite.c b/legacy/elementary/src/tests/elm_suite.c
index efa5df83f4..dde196291b 100644
--- a/legacy/elementary/src/tests/elm_suite.c
+++ b/legacy/elementary/src/tests/elm_suite.c
@@ -19,7 +19,65 @@ static const Elementary_Test_Case etc[] = {
19 { "elm_colorselector", elm_test_colorselector }, 19 { "elm_colorselector", elm_test_colorselector },
20 { "elm_entry", elm_test_entry}, 20 { "elm_entry", elm_test_entry},
21 { "elm_atspi", elm_test_atspi}, 21 { "elm_atspi", elm_test_atspi},
22 { "elm_button", elm_test_button},
23 { "elm_image", elm_test_image},
22 { "elm_list", elm_test_list}, 24 { "elm_list", elm_test_list},
25 { "elm_photo", elm_test_photo},
26 { "elm_actionslider", elm_test_actionslider},
27 { "elm_box", elm_test_box},
28 { "elm_table", elm_test_table},
29 { "elm_thumb", elm_test_thumb},
30 { "elm_menu", elm_test_menu},
31 { "elm_photocam", elm_test_photocam},
32 { "elm_win", elm_test_win},
33 { "elm_icon", elm_test_icon},
34 { "elm_prefs", elm_test_prefs},
35 { "elm_map", elm_test_map},
36 { "elm_glview", elm_test_glview},
37 { "elm_web", elm_test_web},
38 { "elm_toolbar", elm_test_toolbar},
39 { "elm_grid", elm_test_grid},
40 { "elm_diskselector", elm_test_diskselector},
41 { "elm_notify", elm_test_notify},
42 { "elm_mapbuf", elm_test_mapbuf},
43 { "elm_flip", elm_test_flip},
44 { "elm_layout", elm_test_layout},
45 { "elm_slider", elm_test_slider},
46 { "elm_ctxpopup", elm_test_ctxpopup},
47 { "elm_separator", elm_test_separator},
48 { "elm_calendar", elm_test_calendar},
49 { "elm_inwin", elm_test_inwin},
50 { "elm_gengrid", elm_test_gengrid},
51 { "elm_radio", elm_test_radio},
52 { "elm_scroller", elm_test_scroller},
53 { "elm_frame", elm_test_frame},
54 { "elm_datetime", elm_test_datetime},
55 { "elm_player", elm_test_player},
56 { "elm_bg", elm_test_bg},
57 { "elm_video", elm_test_video},
58 { "elm_segmentcontrol", elm_test_segmentcontrol},
59 { "elm_progressbar", elm_test_progressbar},
60 { "elm_fileselector", elm_test_fileselector},
61 { "elm_fileselector_button", elm_test_fileselector_button},
62 { "elm_fileselector_entry", elm_test_fileselector_entry},
63 { "elm_hoversel", elm_test_hoversel},
64 { "elm_multibuttonentry", elm_test_multibuttonentry},
65 { "elm_naviframe", elm_test_naviframe},
66 { "elm_popup", elm_test_popup},
67 { "elm_bubble", elm_test_bubble},
68 { "elm_clock", elm_test_clock},
69 { "elm_conformant", elm_test_conformant},
70 { "elm_dayselector", elm_test_dayselector},
71 { "elm_flipselector", elm_test_flipselector},
72 { "elm_genlist", elm_test_genlist},
73 { "elm_hover", elm_test_hover},
74 { "elm_index", elm_test_index},
75 { "elm_label", elm_test_label},
76 { "elm_panel", elm_test_panel},
77 { "elm_panes", elm_test_panes},
78 { "elm_slideshow", elm_test_slideshow},
79 { "elm_spinner", elm_test_spinner},
80 { "elm_plug", elm_test_plug},
23 { NULL, NULL } 81 { NULL, NULL }
24}; 82};
25 83
diff --git a/legacy/elementary/src/tests/elm_suite.h b/legacy/elementary/src/tests/elm_suite.h
index 4ff62f932b..7918a4efb5 100644
--- a/legacy/elementary/src/tests/elm_suite.h
+++ b/legacy/elementary/src/tests/elm_suite.h
@@ -8,6 +8,64 @@ void elm_test_check(TCase *tc);
8void elm_test_colorselector(TCase *tc); 8void elm_test_colorselector(TCase *tc);
9void elm_test_entry(TCase *tc); 9void elm_test_entry(TCase *tc);
10void elm_test_atspi(TCase *tc); 10void elm_test_atspi(TCase *tc);
11void elm_test_button(TCase *tc);
12void elm_test_image(TCase *tc);
11void elm_test_list(TCase *tc); 13void elm_test_list(TCase *tc);
14void elm_test_photo(TCase *tc);
15void elm_test_actionslider(TCase *tc);
16void elm_test_box(TCase *tc);
17void elm_test_table(TCase *tc);
18void elm_test_thumb(TCase *tc);
19void elm_test_menu(TCase *tc);
20void elm_test_photocam(TCase *tc);
21void elm_test_win(TCase *tc);
22void elm_test_icon(TCase *tc);
23void elm_test_prefs(TCase *tc);
24void elm_test_map(TCase *tc);
25void elm_test_glview(TCase *tc);
26void elm_test_web(TCase *tc);
27void elm_test_toolbar(TCase *tc);
28void elm_test_grid(TCase *tc);
29void elm_test_diskselector(TCase *tc);
30void elm_test_notify(TCase *tc);
31void elm_test_mapbuf(TCase *tc);
32void elm_test_flip(TCase *tc);
33void elm_test_layout(TCase *tc);
34void elm_test_slider(TCase *tc);
35void elm_test_ctxpopup(TCase *tc);
36void elm_test_separator(TCase *tc);
37void elm_test_calendar(TCase *tc);
38void elm_test_inwin(TCase *tc);
39void elm_test_gengrid(TCase *tc);
40void elm_test_radio(TCase *tc);
41void elm_test_scroller(TCase *tc);
42void elm_test_frame(TCase *tc);
43void elm_test_datetime(TCase *tc);
44void elm_test_player(TCase *tc);
45void elm_test_bg(TCase *tc);
46void elm_test_video(TCase *tc);
47void elm_test_segmentcontrol(TCase *tc);
48void elm_test_progressbar(TCase *tc);
49void elm_test_fileselector(TCase *tc);
50void elm_test_fileselector_button(TCase *tc);
51void elm_test_fileselector_entry(TCase *tc);
52void elm_test_hoversel(TCase *tc);
53void elm_test_multibuttonentry(TCase *tc);
54void elm_test_naviframe(TCase *tc);
55void elm_test_popup(TCase *tc);
56void elm_test_bubble(TCase *tc);
57void elm_test_clock(TCase *tc);
58void elm_test_conformant(TCase *tc);
59void elm_test_dayselector(TCase *tc);
60void elm_test_flipselector(TCase *tc);
61void elm_test_genlist(TCase *tc);
62void elm_test_hover(TCase *tc);
63void elm_test_index(TCase *tc);
64void elm_test_label(TCase *tc);
65void elm_test_panel(TCase *tc);
66void elm_test_panes(TCase *tc);
67void elm_test_slideshow(TCase *tc);
68void elm_test_spinner(TCase *tc);
69void elm_test_plug(TCase *tc);
12 70
13#endif /* _ELM_SUITE_H */ 71#endif /* _ELM_SUITE_H */
diff --git a/legacy/elementary/src/tests/elm_test_actionslider.c b/legacy/elementary/src/tests/elm_test_actionslider.c
new file mode 100644
index 0000000000..4974587f97
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_actionslider.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, *actionslider;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "actionslider", ELM_WIN_BASIC);
20
21 actionslider = elm_actionslider_add(win);
22 eo_do(actionslider, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SLIDER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_actionslider(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_bg.c b/legacy/elementary/src/tests/elm_test_bg.c
new file mode 100644
index 0000000000..1d341db5d4
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_bg.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, *bg;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "bg", ELM_WIN_BASIC);
20
21 bg = elm_bg_add(win);
22 eo_do(bg, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_bg(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_box.c b/legacy/elementary/src/tests/elm_test_box.c
new file mode 100644
index 0000000000..eacfbae488
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_box.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, *box;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "box", ELM_WIN_BASIC);
20
21 box = elm_box_add(win);
22 eo_do(box, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_box(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_bubble.c b/legacy/elementary/src/tests/elm_test_bubble.c
new file mode 100644
index 0000000000..e3f59fc1c7
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_bubble.c
@@ -0,0 +1,34 @@
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, *bubble;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "bubble", ELM_WIN_BASIC);
20
21 bubble = elm_bubble_add(win);
22 eo_do(bubble, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_bubble(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_button.c b/legacy/elementary/src/tests/elm_test_button.c
new file mode 100644
index 0000000000..b54fc8fb0a
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_button.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, *button;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "button", ELM_WIN_BASIC);
20
21 button = elm_button_add(win);
22 eo_do(button, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PUSH_BUTTON);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_button(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_calendar.c b/legacy/elementary/src/tests/elm_test_calendar.c
new file mode 100644
index 0000000000..6366f6bb5f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_calendar.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, *calendar;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
20
21 calendar = elm_calendar_add(win);
22 eo_do(calendar, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_CALENDAR);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_calendar(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_check.c b/legacy/elementary/src/tests/elm_test_check.c
index 5c3eb2d08d..5e1c17783d 100644
--- a/legacy/elementary/src/tests/elm_test_check.c
+++ b/legacy/elementary/src/tests/elm_test_check.c
@@ -5,6 +5,10 @@
5#include <Elementary.h> 5#include <Elementary.h>
6#include "elm_suite.h" 6#include "elm_suite.h"
7 7
8#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
9#include "elm_interface_atspi_accessible.h"
10#include "elm_interface_atspi_accessible.eo.h"
11
8START_TEST (elm_check_onoff_text) 12START_TEST (elm_check_onoff_text)
9{ 13{
10 Evas_Object *win, *check; 14 Evas_Object *win, *check;
@@ -49,8 +53,26 @@ START_TEST (elm_check_state)
49} 53}
50END_TEST 54END_TEST
51 55
56START_TEST (elm_atspi_role_get)
57{
58 Evas_Object *win, *check;
59 Elm_Atspi_Role role;
60
61 elm_init(1, NULL);
62 win = elm_win_add(NULL, "check", ELM_WIN_BASIC);
63
64 check = elm_check_add(win);
65 eo_do(check, role = elm_interface_atspi_accessible_role_get());
66
67 ck_assert(role == ELM_ATSPI_ROLE_CHECK_BOX);
68
69 elm_shutdown();
70}
71END_TEST
72
52void elm_test_check(TCase *tc) 73void elm_test_check(TCase *tc)
53{ 74{
54 tcase_add_test(tc, elm_check_onoff_text); 75 tcase_add_test(tc, elm_check_onoff_text);
55 tcase_add_test(tc, elm_check_state); 76 tcase_add_test(tc, elm_check_state);
77 tcase_add_test(tc, elm_atspi_role_get);
56} 78}
diff --git a/legacy/elementary/src/tests/elm_test_clock.c b/legacy/elementary/src/tests/elm_test_clock.c
new file mode 100644
index 0000000000..1eca4361e9
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_clock.c
@@ -0,0 +1,34 @@
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, *clock;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "clock", ELM_WIN_BASIC);
20
21 clock = elm_clock_add(win);
22 eo_do(clock, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_TEXT);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_clock(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_colorselector.c b/legacy/elementary/src/tests/elm_test_colorselector.c
index 3c3cbd18ec..d74a5f63c8 100644
--- a/legacy/elementary/src/tests/elm_test_colorselector.c
+++ b/legacy/elementary/src/tests/elm_test_colorselector.c
@@ -5,6 +5,10 @@
5#include <Elementary.h> 5#include <Elementary.h>
6#include "elm_suite.h" 6#include "elm_suite.h"
7 7
8#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
9#include "elm_interface_atspi_accessible.h"
10#include "elm_interface_atspi_accessible.eo.h"
11
8START_TEST (elm_colorselector_palette) 12START_TEST (elm_colorselector_palette)
9{ 13{
10 Evas_Object *win, *c; 14 Evas_Object *win, *c;
@@ -32,7 +36,25 @@ START_TEST (elm_colorselector_palette)
32} 36}
33END_TEST 37END_TEST
34 38
39START_TEST (elm_atspi_role_get)
40{
41 Evas_Object *win, *c;
42 Elm_Atspi_Role role;
43
44 elm_init(1, NULL);
45 win = elm_win_add(NULL, "colorselector", ELM_WIN_BASIC);
46
47 c = elm_colorselector_add(win);
48 eo_do(c, role = elm_interface_atspi_accessible_role_get());
49
50 ck_assert(role == ELM_ATSPI_ROLE_COLOR_CHOOSER);
51
52 elm_shutdown();
53}
54END_TEST
55
35void elm_test_colorselector(TCase *tc) 56void elm_test_colorselector(TCase *tc)
36{ 57{
37 tcase_add_test(tc, elm_colorselector_palette); 58 tcase_add_test(tc, elm_colorselector_palette);
59 tcase_add_test(tc, elm_atspi_role_get);
38} 60}
diff --git a/legacy/elementary/src/tests/elm_test_conformant.c b/legacy/elementary/src/tests/elm_test_conformant.c
new file mode 100644
index 0000000000..478569cf7d
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_conformant.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, *conformant;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC);
20
21 conformant = elm_conformant_add(win);
22 eo_do(conformant, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_conformant(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
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 0000000000..cc744e6303
--- /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}
diff --git a/legacy/elementary/src/tests/elm_test_datetime.c b/legacy/elementary/src/tests/elm_test_datetime.c
new file mode 100644
index 0000000000..06128c1c1f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_datetime.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, *datetime;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "datetime", ELM_WIN_BASIC);
20
21 datetime = elm_datetime_add(win);
22 eo_do(datetime, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_DATE_EDITOR);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_datetime(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_dayselector.c b/legacy/elementary/src/tests/elm_test_dayselector.c
new file mode 100644
index 0000000000..1eebfd0b37
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_dayselector.c
@@ -0,0 +1,34 @@
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, *dayselector;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "dayselector", ELM_WIN_BASIC);
20
21 dayselector = elm_dayselector_add(win);
22 eo_do(dayselector, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PANEL);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_dayselector(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_diskselector.c b/legacy/elementary/src/tests/elm_test_diskselector.c
new file mode 100644
index 0000000000..e0296c483f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_diskselector.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, *diskselector;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "diskselector", ELM_WIN_BASIC);
20
21 diskselector = elm_diskselector_add(win);
22 eo_do(diskselector, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_diskselector(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_entry.c b/legacy/elementary/src/tests/elm_test_entry.c
index 3fdf31bf98..d3cc16573d 100644
--- a/legacy/elementary/src/tests/elm_test_entry.c
+++ b/legacy/elementary/src/tests/elm_test_entry.c
@@ -6,15 +6,18 @@
6#include "elm_suite.h" 6#include "elm_suite.h"
7 7
8#define ELM_INTERFACE_ATSPI_TEXT_PROTECTED 8#define ELM_INTERFACE_ATSPI_TEXT_PROTECTED
9#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
9#include "elm_interface_atspi_text.h" 10#include "elm_interface_atspi_text.h"
10#include "elm_interface_atspi_text.eo.h" 11#include "elm_interface_atspi_text.eo.h"
12#include "elm_interface_atspi_accessible.h"
13#include "elm_interface_atspi_accessible.eo.h"
11 14
12START_TEST (elm_entry_del) 15START_TEST (elm_entry_del)
13{ 16{
14 Evas_Object *win, *entry; 17 Evas_Object *win, *entry;
15 18
16 elm_init(1, NULL); 19 elm_init(1, NULL);
17 win = elm_win_add(NULL, "check", ELM_WIN_BASIC); 20 win = elm_win_add(NULL, "entry", ELM_WIN_BASIC);
18 21
19 entry = elm_entry_add(win); 22 entry = elm_entry_add(win);
20 elm_object_text_set(entry, "TEST"); 23 elm_object_text_set(entry, "TEST");
@@ -349,6 +352,23 @@ START_TEST (elm_entry_atspi_text_attributes)
349} 352}
350END_TEST 353END_TEST
351 354
355START_TEST (elm_atspi_role_get)
356{
357 Evas_Object *win, *entry;
358 Elm_Atspi_Role role;
359
360 elm_init(1, NULL);
361 win = elm_win_add(NULL, "entry", ELM_WIN_BASIC);
362
363 entry = elm_entry_add(win);
364 eo_do(entry, role = elm_interface_atspi_accessible_role_get());
365
366 ck_assert(role == ELM_ATSPI_ROLE_ENTRY);
367
368 elm_shutdown();
369}
370END_TEST
371
352void elm_test_entry(TCase *tc) 372void elm_test_entry(TCase *tc)
353{ 373{
354 tcase_add_test(tc, elm_entry_del); 374 tcase_add_test(tc, elm_entry_del);
@@ -361,4 +381,5 @@ void elm_test_entry(TCase *tc)
361 tcase_add_test(tc, elm_entry_atspi_text_text_get); 381 tcase_add_test(tc, elm_entry_atspi_text_text_get);
362 tcase_add_test(tc, elm_entry_atspi_text_selections); 382 tcase_add_test(tc, elm_entry_atspi_text_selections);
363 tcase_add_test(tc, elm_entry_atspi_text_attributes); 383 tcase_add_test(tc, elm_entry_atspi_text_attributes);
384 tcase_add_test(tc, elm_atspi_role_get);
364} 385}
diff --git a/legacy/elementary/src/tests/elm_test_fileselector.c b/legacy/elementary/src/tests/elm_test_fileselector.c
new file mode 100644
index 0000000000..5d09430837
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_fileselector.c
@@ -0,0 +1,34 @@
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, *fileselector;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC);
20
21 fileselector = elm_fileselector_add(win);
22 eo_do(fileselector, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILE_CHOOSER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_fileselector(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_fileselector_button.c b/legacy/elementary/src/tests/elm_test_fileselector_button.c
new file mode 100644
index 0000000000..a6c4774281
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_fileselector_button.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, *fs_button;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "fileselector_button", ELM_WIN_BASIC);
20
21 fs_button = elm_fileselector_button_add(win);
22 eo_do(fs_button, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PUSH_BUTTON);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_fileselector_button(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_fileselector_entry.c b/legacy/elementary/src/tests/elm_test_fileselector_entry.c
new file mode 100644
index 0000000000..0f02292453
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_fileselector_entry.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, *fs_entry;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "fileselectorentry", ELM_WIN_BASIC);
20
21 fs_entry = elm_fileselector_entry_add(win);
22 eo_do(fs_entry, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_GROUPING);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_fileselector_entry(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_flip.c b/legacy/elementary/src/tests/elm_test_flip.c
new file mode 100644
index 0000000000..1f2635c931
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_flip.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, *flip;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "flip", ELM_WIN_BASIC);
20
21 flip = elm_flip_add(win);
22 eo_do(flip, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PAGE_TAB_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_flip(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_flipselector.c b/legacy/elementary/src/tests/elm_test_flipselector.c
new file mode 100644
index 0000000000..2e9a0d9bf5
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_flipselector.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, *flipselector;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "flipselector", ELM_WIN_BASIC);
20
21 flipselector = elm_flipselector_add(win);
22 eo_do(flipselector, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_flipselector(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_frame.c b/legacy/elementary/src/tests/elm_test_frame.c
new file mode 100644
index 0000000000..d3a6463ac4
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_frame.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, *frame;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "frame", ELM_WIN_BASIC);
20
21 frame = elm_frame_add(win);
22 eo_do(frame, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FRAME);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_frame(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_gengrid.c b/legacy/elementary/src/tests/elm_test_gengrid.c
new file mode 100644
index 0000000000..c3fc99effe
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_gengrid.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, *gengrid;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "gengrid", ELM_WIN_BASIC);
20
21 gengrid = elm_gengrid_add(win);
22 eo_do(gengrid, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_TABLE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_gengrid(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_genlist.c b/legacy/elementary/src/tests/elm_test_genlist.c
new file mode 100644
index 0000000000..9387e0bfbc
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_genlist.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, *genlist;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "genlist", ELM_WIN_BASIC);
20
21 genlist = elm_genlist_add(win);
22 eo_do(genlist, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_genlist(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_glview.c b/legacy/elementary/src/tests/elm_test_glview.c
new file mode 100644
index 0000000000..af380056aa
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_glview.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, *glview;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "glview", ELM_WIN_BASIC);
20
21 glview = elm_glview_add(win);
22 eo_do(glview, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_ANIMATION);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_glview(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_grid.c b/legacy/elementary/src/tests/elm_test_grid.c
new file mode 100644
index 0000000000..bdacbb9a59
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_grid.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, *grid;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "grid", ELM_WIN_BASIC);
20
21 grid = elm_grid_add(win);
22 eo_do(grid, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_grid(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_hover.c b/legacy/elementary/src/tests/elm_test_hover.c
new file mode 100644
index 0000000000..4aafb2fef1
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_hover.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, *hover;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "hover", ELM_WIN_BASIC);
20
21 hover = elm_hover_add(win);
22 eo_do(hover, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_GLASS_PANE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_hover(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_hoversel.c b/legacy/elementary/src/tests/elm_test_hoversel.c
new file mode 100644
index 0000000000..d4f2757688
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_hoversel.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, *hoversel;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "hoversel", ELM_WIN_BASIC);
20
21 hoversel = elm_hoversel_add(win);
22 eo_do(hoversel, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_GLASS_PANE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_hoversel(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_icon.c b/legacy/elementary/src/tests/elm_test_icon.c
new file mode 100644
index 0000000000..71525d0654
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_icon.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, *icon;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
20
21 icon = elm_icon_add(win);
22 eo_do(icon, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_icon(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_image.c b/legacy/elementary/src/tests/elm_test_image.c
new file mode 100644
index 0000000000..c8db645d0f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_image.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, *image;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "image", ELM_WIN_BASIC);
20
21 image = elm_image_add(win);
22 eo_do(image, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_image(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_index.c b/legacy/elementary/src/tests/elm_test_index.c
new file mode 100644
index 0000000000..17c240e09b
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_index.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, *index;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "index", ELM_WIN_BASIC);
20
21 index = elm_index_add(win);
22 eo_do(index, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_index(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_inwin.c b/legacy/elementary/src/tests/elm_test_inwin.c
new file mode 100644
index 0000000000..f5693b73a3
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_inwin.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, *inwin;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "inwin", ELM_WIN_BASIC);
20
21 inwin = elm_win_inwin_add(win);
22 eo_do(inwin, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_GLASS_PANE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_inwin(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_label.c b/legacy/elementary/src/tests/elm_test_label.c
new file mode 100644
index 0000000000..e0f0e06dad
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_label.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, *label;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "label", ELM_WIN_BASIC);
20
21 label = elm_label_add(win);
22 eo_do(label, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LABEL);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_label(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_layout.c b/legacy/elementary/src/tests/elm_test_layout.c
new file mode 100644
index 0000000000..37f5cfd5e2
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_layout.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, *layout;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "layout", ELM_WIN_BASIC);
20
21 layout = elm_layout_add(win);
22 eo_do(layout, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_layout(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_list.c b/legacy/elementary/src/tests/elm_test_list.c
index 4e5c4148f4..1bd5d1f013 100644
--- a/legacy/elementary/src/tests/elm_test_list.c
+++ b/legacy/elementary/src/tests/elm_test_list.c
@@ -8,6 +8,10 @@
8#define ELM_INTERFACE_ATSPI_SELECTION_PROTECTED 8#define ELM_INTERFACE_ATSPI_SELECTION_PROTECTED
9#include "elm_interface_atspi_selection.eo.h" 9#include "elm_interface_atspi_selection.eo.h"
10 10
11#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
12#include "elm_interface_atspi_accessible.h"
13#include "elm_interface_atspi_accessible.eo.h"
14
11START_TEST (elm_list_atspi_selection_selected_children_count_get) 15START_TEST (elm_list_atspi_selection_selected_children_count_get)
12{ 16{
13 Evas_Object *win, *list; 17 Evas_Object *win, *list;
@@ -178,6 +182,23 @@ START_TEST (elm_list_atspi_selection_child_deselect)
178} 182}
179END_TEST 183END_TEST
180 184
185START_TEST (elm_atspi_role_get)
186{
187 Evas_Object *win, *list;
188 Elm_Atspi_Role role;
189
190 elm_init(1, NULL);
191 win = elm_win_add(NULL, "list", ELM_WIN_BASIC);
192
193 list = elm_list_add(win);
194 eo_do(list, role = elm_interface_atspi_accessible_role_get());
195
196 ck_assert(role == ELM_ATSPI_ROLE_LIST);
197
198 elm_shutdown();
199}
200END_TEST
201
181void elm_test_list(TCase *tc) 202void elm_test_list(TCase *tc)
182{ 203{
183 tcase_add_test(tc, elm_list_atspi_selection_selected_children_count_get); 204 tcase_add_test(tc, elm_list_atspi_selection_selected_children_count_get);
@@ -187,4 +208,5 @@ void elm_test_list(TCase *tc)
187 tcase_add_test(tc, elm_list_atspi_selection_all_children_select); 208 tcase_add_test(tc, elm_list_atspi_selection_all_children_select);
188 tcase_add_test(tc, elm_list_atspi_selection_clear); 209 tcase_add_test(tc, elm_list_atspi_selection_clear);
189 tcase_add_test(tc, elm_list_atspi_selection_child_deselect); 210 tcase_add_test(tc, elm_list_atspi_selection_child_deselect);
211 tcase_add_test(tc, elm_atspi_role_get);
190} 212}
diff --git a/legacy/elementary/src/tests/elm_test_map.c b/legacy/elementary/src/tests/elm_test_map.c
new file mode 100644
index 0000000000..80d4e94d14
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_map.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, *map;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "map", ELM_WIN_BASIC);
20
21 map = elm_map_add(win);
22 eo_do(map, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE_MAP);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_map(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_mapbuf.c b/legacy/elementary/src/tests/elm_test_mapbuf.c
new file mode 100644
index 0000000000..e124481249
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_mapbuf.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, *mapbuf;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "mapbuf", ELM_WIN_BASIC);
20
21 mapbuf = elm_mapbuf_add(win);
22 eo_do(mapbuf, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE_MAP);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_mapbuf(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_menu.c b/legacy/elementary/src/tests/elm_test_menu.c
new file mode 100644
index 0000000000..49b124391a
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_menu.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, *menu;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "menu", ELM_WIN_BASIC);
20
21 menu = elm_menu_add(win);
22 eo_do(menu, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_MENU);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_menu(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_multibuttonentry.c b/legacy/elementary/src/tests/elm_test_multibuttonentry.c
new file mode 100644
index 0000000000..390142d7cd
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_multibuttonentry.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, *multibuttonentry;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "multibuttonentry", ELM_WIN_BASIC);
20
21 multibuttonentry = elm_multibuttonentry_add(win);
22 eo_do(multibuttonentry, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_ENTRY);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_multibuttonentry(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_naviframe.c b/legacy/elementary/src/tests/elm_test_naviframe.c
new file mode 100644
index 0000000000..8a5247081e
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_naviframe.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, *naviframe;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "naviframe", ELM_WIN_BASIC);
20
21 naviframe = elm_naviframe_add(win);
22 eo_do(naviframe, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PAGE_TAB_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_naviframe(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_notify.c b/legacy/elementary/src/tests/elm_test_notify.c
new file mode 100644
index 0000000000..e4c360cbe5
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_notify.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, *notify;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "notify", ELM_WIN_BASIC);
20
21 notify = elm_notify_add(win);
22 eo_do(notify, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_NOTIFICATION);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_notify(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_panel.c b/legacy/elementary/src/tests/elm_test_panel.c
new file mode 100644
index 0000000000..eef52cef77
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_panel.c
@@ -0,0 +1,34 @@
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, *panel;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
20
21 panel = elm_panel_add(win);
22 eo_do(panel, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PANEL);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_panel(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_panes.c b/legacy/elementary/src/tests/elm_test_panes.c
new file mode 100644
index 0000000000..c643dc4b07
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_panes.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, *panes;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "panes", ELM_WIN_BASIC);
20
21 panes = elm_panes_add(win);
22 eo_do(panes, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SPLIT_PANE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_panes(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_photo.c b/legacy/elementary/src/tests/elm_test_photo.c
new file mode 100644
index 0000000000..ab0342eba8
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_photo.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, *photo;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
20
21 photo = elm_photo_add(win);
22 eo_do(photo, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_photo(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_photocam.c b/legacy/elementary/src/tests/elm_test_photocam.c
new file mode 100644
index 0000000000..4d1f445f16
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_photocam.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, *photocam;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "photocam", ELM_WIN_BASIC);
20
21 photocam = elm_photocam_add(win);
22 eo_do(photocam, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_photocam(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_player.c b/legacy/elementary/src/tests/elm_test_player.c
new file mode 100644
index 0000000000..49400472b0
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_player.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, *player;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "player", ELM_WIN_BASIC);
20
21 player = elm_player_add(win);
22 eo_do(player, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_ANIMATION);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_player(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_plug.c b/legacy/elementary/src/tests/elm_test_plug.c
new file mode 100644
index 0000000000..51ca61a6ff
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_plug.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, *plug;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "plug", ELM_WIN_BASIC);
20
21 plug = elm_plug_add(win);
22 eo_do(plug, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_plug(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_popup.c b/legacy/elementary/src/tests/elm_test_popup.c
new file mode 100644
index 0000000000..e85950e530
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_popup.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, *popup;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "popup", ELM_WIN_BASIC);
20
21 popup = elm_popup_add(win);
22 eo_do(popup, 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_popup(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_prefs.c b/legacy/elementary/src/tests/elm_test_prefs.c
new file mode 100644
index 0000000000..8eb111226f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_prefs.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, *prefs;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "prefs", ELM_WIN_BASIC);
20
21 prefs = elm_prefs_add(win);
22 eo_do(prefs, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_REDUNDANT_OBJECT);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_prefs(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_progressbar.c b/legacy/elementary/src/tests/elm_test_progressbar.c
new file mode 100644
index 0000000000..4f33dd85b5
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_progressbar.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, *progressbar;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "progressbar", ELM_WIN_BASIC);
20
21 progressbar = elm_progressbar_add(win);
22 eo_do(progressbar, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_PROGRESS_BAR);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_progressbar(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_radio.c b/legacy/elementary/src/tests/elm_test_radio.c
new file mode 100644
index 0000000000..c31cea292f
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_radio.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, *radio;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "radio", ELM_WIN_BASIC);
20
21 radio = elm_radio_add(win);
22 eo_do(radio, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_RADIO_BUTTON);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_radio(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_scroller.c b/legacy/elementary/src/tests/elm_test_scroller.c
new file mode 100644
index 0000000000..665ae56eb3
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_scroller.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, *scroller;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "scroller", ELM_WIN_BASIC);
20
21 scroller = elm_scroller_add(win);
22 eo_do(scroller, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SCROLL_PANE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_scroller(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_segmentcontrol.c b/legacy/elementary/src/tests/elm_test_segmentcontrol.c
new file mode 100644
index 0000000000..316ffbcc34
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_segmentcontrol.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, *segmentcontrol;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "segmentcontrol", ELM_WIN_BASIC);
20
21 segmentcontrol = elm_segment_control_add(win);
22 eo_do(segmentcontrol, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_LIST);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_segmentcontrol(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_separator.c b/legacy/elementary/src/tests/elm_test_separator.c
new file mode 100644
index 0000000000..7133c434e2
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_separator.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, *separator;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
20
21 separator = elm_separator_add(win);
22 eo_do(separator, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SEPARATOR);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_separator(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_slider.c b/legacy/elementary/src/tests/elm_test_slider.c
new file mode 100644
index 0000000000..06d9b766c6
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_slider.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, *slider;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "slider", ELM_WIN_BASIC);
20
21 slider = elm_slider_add(win);
22 eo_do(slider, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SLIDER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_slider(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_slideshow.c b/legacy/elementary/src/tests/elm_test_slideshow.c
new file mode 100644
index 0000000000..ef2ff8e229
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_slideshow.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, *slideshow;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "slideshow", ELM_WIN_BASIC);
20
21 slideshow = elm_slideshow_add(win);
22 eo_do(slideshow, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_DOCUMENT_PRESENTATION);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_slideshow(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_spinner.c b/legacy/elementary/src/tests/elm_test_spinner.c
new file mode 100644
index 0000000000..5fa0bb8004
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_spinner.c
@@ -0,0 +1,34 @@
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, *spinner;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "spinner", ELM_WIN_BASIC);
20
21 spinner = elm_spinner_add(win);
22 eo_do(spinner, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_SPIN_BUTTON);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_spinner(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
34
diff --git a/legacy/elementary/src/tests/elm_test_table.c b/legacy/elementary/src/tests/elm_test_table.c
new file mode 100644
index 0000000000..95b76d4064
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_table.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, *table;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
20
21 table = elm_table_add(win);
22 eo_do(table, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_FILLER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_table(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_thumb.c b/legacy/elementary/src/tests/elm_test_thumb.c
new file mode 100644
index 0000000000..7d40c56263
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_thumb.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, *thumb;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
20
21 thumb = elm_thumb_add(win);
22 eo_do(thumb, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_thumb(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_toolbar.c b/legacy/elementary/src/tests/elm_test_toolbar.c
new file mode 100644
index 0000000000..cff47ad73e
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_toolbar.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, *toolbar;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "toolbar", ELM_WIN_BASIC);
20
21 toolbar = elm_toolbar_add(win);
22 eo_do(toolbar, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_TOOL_BAR);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_toolbar(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_video.c b/legacy/elementary/src/tests/elm_test_video.c
new file mode 100644
index 0000000000..1e07e7f683
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_video.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, *video;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "video", ELM_WIN_BASIC);
20
21 video = elm_video_add(win);
22 eo_do(video, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_ANIMATION);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_video(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_web.c b/legacy/elementary/src/tests/elm_test_web.c
new file mode 100644
index 0000000000..0557edd326
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_web.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, *web;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "web", ELM_WIN_BASIC);
20
21 web = elm_web_add(win);
22 eo_do(web, role = elm_interface_atspi_accessible_role_get());
23
24 ck_assert(role == ELM_ATSPI_ROLE_HTML_CONTAINER);
25
26 elm_shutdown();
27}
28END_TEST
29
30void elm_test_web(TCase *tc)
31{
32 tcase_add_test(tc, elm_atspi_role_get);
33}
diff --git a/legacy/elementary/src/tests/elm_test_win.c b/legacy/elementary/src/tests/elm_test_win.c
new file mode 100644
index 0000000000..eb99412a60
--- /dev/null
+++ b/legacy/elementary/src/tests/elm_test_win.c
@@ -0,0 +1,32 @@
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;
16 Elm_Atspi_Role role;
17
18 elm_init(1, NULL);
19 win = elm_win_add(NULL, "win", ELM_WIN_BASIC);
20
21 eo_do(win, role = elm_interface_atspi_accessible_role_get());
22
23 ck_assert(role == ELM_ATSPI_ROLE_WINDOW);
24
25 elm_shutdown();
26}
27END_TEST
28
29void elm_test_win(TCase *tc)
30{
31 tcase_add_test(tc, elm_atspi_role_get);
32}