2 * Tested interface: AtkAction
4 * Tested AtkObject: EailMap
6 * Description: Test AtkAction 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)
26 g_assert(ATK_IS_ACTION(object));
28 eailu_test_action_description_all(ATK_ACTION(object));
30 n = atk_action_get_n_actions(ATK_ACTION(object));
33 for (i = 0; i < n; ++i)
35 const char *name = atk_action_get_name(ATK_ACTION(object), i);
36 eailu_test_action_activate(ATK_ACTION(object), name);
39 eailu_test_code_called = 1;
43 _init_map(Evas_Object *win)
45 Evas_Object *bg, *map;
48 elm_win_resize_object_add(win, bg);
49 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
52 map = elm_map_add(win);
53 elm_win_resize_object_add(win, map);
54 evas_object_size_hint_weight_set(map, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
55 evas_object_show(map);
57 elm_map_zoom_set(map, 6);
58 elm_map_region_show(map, 19.45, 51.75);
59 evas_object_resize(win, 512, 512);
63 elm_main(int argc, char **argv)
67 win = eailu_create_test_window_with_glib_init(_on_done, _on_focus_in);
69 evas_object_show(win);