2 * Tested interface: AtkObject
4 * Tested AtkObject: EailThumb
6 * Description: Test AtkObject interface
8 * Test input: accessible object representing EailThumb
10 * Expected test result: test should return 0 (success)
13 #include <Elementary.h>
15 #include "eail_test_utils.h"
17 INIT_TEST("EailThumb")
20 _init_thumb(Evas_Object *win)
22 const char *filename = "./data/06.jpg";
23 Evas_Object *bg, *thumb;
28 elm_win_resize_object_add(win, bg);
29 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
32 thumb = elm_thumb_add(win);
33 elm_thumb_editable_set(thumb, EINA_FALSE);
34 elm_thumb_file_set(thumb, filename, NULL);
35 elm_thumb_reload(thumb);
36 evas_object_size_hint_weight_set(thumb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
37 elm_win_resize_object_add(win, thumb);
38 evas_object_show(thumb);
42 _do_test(AtkObject *obj)
44 g_assert(atk_object_get_role(obj) == ATK_ROLE_IMAGE);
45 atk_object_set_description(obj, "test");
46 g_assert_cmpstr(atk_object_get_description(obj), ==, "test");
48 atk_object_set_name(obj, "test name");
49 g_assert_cmpstr(atk_object_get_name(obj), ==, "test name");
51 g_assert(NULL != atk_object_ref_state_set(obj));
53 eailu_test_code_called = 1;
57 elm_main(int argc, char **argv)
61 win = eailu_create_test_window_with_glib_init(_on_done, _on_focus_in);
64 evas_object_show(win);