2 * Tested interface: AtkObject
4 * Tested AtkObject: EailMap
6 * Description: Test AtkObject interface
8 * Test input: accessible object representing EailMap
10 * Expected test result: test should return 0 (success)
13 #include <Elementary.h>
16 #include "eail_test_utils.h"
21 _do_test(AtkObject *object)
23 g_assert(ATK_IS_OBJECT(object));
24 atk_object_set_description(object, "test");
25 g_assert_cmpstr(atk_object_get_description(object), ==, "test");
27 atk_object_set_name(object, "test name");
28 g_assert_cmpstr(atk_object_get_name(object), ==, "test name");
30 g_assert(eailu_is_object_with_role(object, ATK_ROLE_IMAGE_MAP));
32 g_assert(atk_object_get_name(object) != NULL);
34 eailu_test_atk_focus(object, TRUE);
36 eailu_test_code_called = 1;
40 _init_map(Evas_Object *win)
42 Evas_Object *bg, *map;
45 elm_win_resize_object_add(win, bg);
46 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
49 map = elm_map_add(win);
50 elm_win_resize_object_add(win, map);
51 evas_object_size_hint_weight_set(map, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
52 evas_object_show(map);
54 elm_map_zoom_set(map, 6);
55 elm_map_region_show(map, 19.45, 51.75);
56 evas_object_resize(win, 512, 512);
60 elm_main(int argc, char **argv)
64 win = eailu_create_test_window_with_glib_init(_on_done, _on_focus_in);
66 evas_object_show(win);