2 * Tested interface: AtkObject
4 * Tested AtkObject: EailTooltip
6 * Description: Test whether accessible object is successfully registered
7 * in GObject type system and is visible in AtkObject tree.
9 * Test input: accessible object representing EailTooltip
11 * Expected test result: test should return 0 (success)
14 #include <Elementary.h>
16 #include "eail_test_utils.h"
18 INIT_TEST("EailWindow")
21 _do_test(AtkObject *obj)
23 g_assert(ATK_IS_OBJECT(obj));
25 g_assert(atk_object_get_role(obj) == ATK_ROLE_WINDOW);
27 atk_object_set_description(obj, "test");
28 g_assert_cmpstr(atk_object_get_description(obj), ==, "test");
30 atk_object_set_name(obj, "test name");
31 g_assert_cmpstr(atk_object_get_name(obj), ==, "test name");
33 eailu_test_code_called = 1;
37 _init_tooltip(Evas_Object *win)
39 const char *text = "test text";
40 elm_object_tooltip_text_set(win, text);
41 elm_object_tooltip_show(win);
43 evas_object_resize(win, 320, 320);
47 elm_main(int argc, char **argv)
51 win = eailu_create_test_window_with_glib_init(_on_done, _on_focus_in);
54 evas_object_show(win);