summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Kosinski <z.kosinski@samsung.com>2014-07-21 18:07:10 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2014-07-21 18:23:48 +0200
commit0c7e93cdaab34d361686064a492488b213a5454c (patch)
tree345596401c9e794e4283be852be5af9168d6b2f5
parent284391d6cfbc77a21f6229fb686be0fe83c43ab6 (diff)
tests: check required interfaces implementation by widgets
Reviewers: stanluk, raster Subscribers: raster Differential Revision: https://phab.enlightenment.org/D944
-rw-r--r--src/tests/elm_test_button.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/elm_test_button.c b/src/tests/elm_test_button.c
index b54fc8fb0..f00408fb3 100644
--- a/src/tests/elm_test_button.c
+++ b/src/tests/elm_test_button.c
@@ -9,6 +9,12 @@
9#include "elm_interface_atspi_accessible.h" 9#include "elm_interface_atspi_accessible.h"
10#include "elm_interface_atspi_accessible.eo.h" 10#include "elm_interface_atspi_accessible.eo.h"
11 11
12#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED
13#include "elm_interface_atspi_component.eo.h"
14
15#define ELM_INTERFACE_ATSPI_ACTION_PROTECTED
16#include "elm_interface_atspi_action.eo.h"
17
12 18
13START_TEST (elm_atspi_role_get) 19START_TEST (elm_atspi_role_get)
14{ 20{
@@ -27,7 +33,25 @@ START_TEST (elm_atspi_role_get)
27} 33}
28END_TEST 34END_TEST
29 35
36START_TEST (elm_atspi_interfaces_check)
37{
38 Evas_Object *win, *button;
39
40 elm_init(1, NULL);
41 win = elm_win_add(NULL, "button", ELM_WIN_BASIC);
42
43 button = elm_button_add(win);
44
45 ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN));
46 ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_COMPONENT_MIXIN));
47 ck_assert(eo_isa(button, ELM_INTERFACE_ATSPI_ACTION_MIXIN));
48
49 elm_shutdown();
50}
51END_TEST
52
30void elm_test_button(TCase *tc) 53void elm_test_button(TCase *tc)
31{ 54{
32 tcase_add_test(tc, elm_atspi_role_get); 55 tcase_add_test(tc, elm_atspi_role_get);
56 tcase_add_test(tc, elm_atspi_interfaces_check);
33} 57}