summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2015-11-30 10:46:19 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2015-12-01 16:12:18 +0100
commitcfc7b806193c67b79f3fb86468b5ce6ed9929aac (patch)
tree061aa55f605b6fc909ddda68dc9954c1a3b9e1de
parente2b1e28a12741b3be9db2aa4edae9e42877049e6 (diff)
bg: do not make background accessibility object.
-rw-r--r--src/lib/elm_bg.c4
-rw-r--r--src/tests/elm_test_atspi.c6
-rw-r--r--src/tests/elm_test_bg.c21
3 files changed, 4 insertions, 27 deletions
diff --git a/src/lib/elm_bg.c b/src/lib/elm_bg.c
index 90e0119bb..158415682 100644
--- a/src/lib/elm_bg.c
+++ b/src/lib/elm_bg.c
@@ -120,10 +120,10 @@ elm_bg_add(Evas_Object *parent)
120EOLIAN static Eo * 120EOLIAN static Eo *
121_elm_bg_eo_base_constructor(Eo *obj, Elm_Bg_Data *_pd EINA_UNUSED) 121_elm_bg_eo_base_constructor(Eo *obj, Elm_Bg_Data *_pd EINA_UNUSED)
122{ 122{
123 eo_do(obj, elm_interface_atspi_accessible_type_set(ELM_ATSPI_TYPE_DISABLED));
123 obj = eo_do_super_ret(obj, MY_CLASS, obj, eo_constructor()); 124 obj = eo_do_super_ret(obj, MY_CLASS, obj, eo_constructor());
124 eo_do(obj, 125 eo_do(obj,
125 evas_obj_type_set(MY_CLASS_NAME_LEGACY), 126 evas_obj_type_set(MY_CLASS_NAME_LEGACY));
126 elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_IMAGE));
127 127
128 return obj; 128 return obj;
129} 129}
diff --git a/src/tests/elm_test_atspi.c b/src/tests/elm_test_atspi.c
index 23fbdbf4a..7faae94db 100644
--- a/src/tests/elm_test_atspi.c
+++ b/src/tests/elm_test_atspi.c
@@ -267,16 +267,12 @@ START_TEST (elm_atspi_children_and_parent2)
267 Eina_List *win_children; 267 Eina_List *win_children;
268 eo_do(win, win_children = elm_interface_atspi_accessible_children_get()); 268 eo_do(win, win_children = elm_interface_atspi_accessible_children_get());
269 269
270 ck_assert(eina_list_count(win_children) == 2); 270 ck_assert(eina_list_count(win_children) == 1);
271 271
272 Eo *btn = NULL; 272 Eo *btn = NULL;
273 273
274 btn = eina_list_nth(win_children, 0); 274 btn = eina_list_nth(win_children, 0);
275 ck_assert(btn != NULL); 275 ck_assert(btn != NULL);
276 ck_assert(btn == g_bg);
277
278 btn = eina_list_nth(win_children, 1);
279 ck_assert(btn != NULL);
280 ck_assert(btn == g_btn); 276 ck_assert(btn == g_btn);
281 277
282 eo_unref(root); 278 eo_unref(root);
diff --git a/src/tests/elm_test_bg.c b/src/tests/elm_test_bg.c
index fd5e8d97c..8c2047d7a 100644
--- a/src/tests/elm_test_bg.c
+++ b/src/tests/elm_test_bg.c
@@ -2,28 +2,9 @@
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4 4
5#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
6#include <Elementary.h> 5#include <Elementary.h>
7#include "elm_suite.h" 6#include "elm_suite.h"
8 7
9START_TEST (elm_atspi_role_get) 8void elm_test_bg(TCase *tc EINA_UNUSED)
10{ 9{
11 Evas_Object *win, *bg;
12 Elm_Atspi_Role role;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "bg", ELM_WIN_BASIC);
16
17 bg = elm_bg_add(win);
18 eo_do(bg, role = elm_interface_atspi_accessible_role_get());
19
20 ck_assert(role == ELM_ATSPI_ROLE_IMAGE);
21
22 elm_shutdown();
23}
24END_TEST
25
26void elm_test_bg(TCase *tc)
27{
28 tcase_add_test(tc, elm_atspi_role_get);
29} 10}