tizen 2.4 release
[framework/uifw/elementary.git] / src / tests / elm_test_calendar.c
1 #ifdef HAVE_CONFIG_H
2 # include "elementary_config.h"
3 #endif
4
5 #define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
6 #include <Elementary.h>
7 #include "elm_suite.h"
8
9 START_TEST (elm_atspi_role_get)
10 {
11    Evas_Object *win, *calendar;
12    Elm_Atspi_Role role;
13
14    elm_init(1, NULL);
15    win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
16
17    calendar = elm_calendar_add(win);
18    eo_do(calendar, role = elm_interface_atspi_accessible_role_get());
19
20    ck_assert(role == ELM_ATSPI_ROLE_CALENDAR);
21
22    elm_shutdown();
23 }
24 END_TEST
25
26 void elm_test_calendar(TCase *tc)
27 {
28  tcase_add_test(tc, elm_atspi_role_get);
29 }