forked from enlightenment/efl
tests: check required interfaces implementation by widgets
Reviewers: stanluk, raster Subscribers: raster Differential Revision: https://phab.enlightenment.org/D944
This commit is contained in:
parent
7205de042a
commit
18ca7d8eb5
|
@ -9,6 +9,12 @@
|
|||
#include "elm_interface_atspi_accessible.h"
|
||||
#include "elm_interface_atspi_accessible.eo.h"
|
||||
|
||||
#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED
|
||||
#include "elm_interface_atspi_component.eo.h"
|
||||
|
||||
#define ELM_INTERFACE_ATSPI_ACTION_PROTECTED
|
||||
#include "elm_interface_atspi_action.eo.h"
|
||||
|
||||
|
||||
START_TEST (elm_atspi_role_get)
|
||||
{
|
||||
|
@ -27,7 +33,25 @@ START_TEST (elm_atspi_role_get)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST (elm_atspi_interfaces_check)
|
||||
{
|
||||
Evas_Object *win, *button;
|
||||
|
||||
elm_init(1, NULL);
|
||||
win = elm_win_add(NULL, "button", ELM_WIN_BASIC);
|
||||
|
||||
button = elm_button_add(win);
|
||||
|
||||
ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN));
|
||||
ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_COMPONENT_MIXIN));
|
||||
ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_ACTION_MIXIN));
|
||||
|
||||
elm_shutdown();
|
||||
}
|
||||
END_TEST
|
||||
|
||||
void elm_test_button(TCase *tc)
|
||||
{
|
||||
tcase_add_test(tc, elm_atspi_role_get);
|
||||
tcase_add_test(tc, elm_atspi_interfaces_check);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue