2 * Tested interface: AtkValue
4 * Tested AtkObject: EailRoute
6 * Description: Test AtkValue interface
8 * Test input: accessible object representing EailRoute
10 * Expected test result: test should return 0 (success)
13 #include <Elementary.h>
16 #include "eail_test_utils.h"
18 INIT_TEST("EailRoute")
21 _init_route(Evas_Object *win)
26 elm_win_resize_object_add(win, bg);
27 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
34 _do_test(AtkObject *obj)
36 g_assert(ATK_IS_VALUE(obj));
38 GValue value = G_VALUE_INIT;
39 atk_value_get_current_value(ATK_VALUE(obj), &value);
40 _printf("atk_value_get_current_value:\n%s\n", g_value_get_string(&value));
42 g_assert_cmpstr(g_value_get_string(&value), ==,
43 "<longitude><min>0.000000</min><max>0.000000</max></longitude>\n"
44 "<latitude><min>0.000000</min><max>0.000000</max></latitude>");
46 atk_value_get_maximum_value(ATK_VALUE(obj), &value);
47 _printf("atk_value_get_maximum_value:\n%s\n", g_value_get_string(&value));
49 atk_value_get_minimum_value(ATK_VALUE(obj), &value);
50 _printf("atk_value_get_minimum_value:\n%s\n", g_value_get_string(&value));
52 atk_value_get_minimum_increment(ATK_VALUE(obj), &value);
53 _printf("atk_value_get_minimum_increment:\n%s\n", g_value_get_string(&value));
55 eailu_test_code_called = 1;
59 elm_main(int argc, char **argv)
63 win = eailu_create_test_window_with_glib_init(_on_done, _on_focus_in);
66 evas_object_show(win);