summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_config.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-23 18:46:04 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-24 16:57:04 +0900
commit8b8430214a6559a0a540b298b768e49a39f84113 (patch)
tree4719d191dad378a498d5a23052fc3500d89abedb /src/tests/elementary/elm_test_config.c
parent575c704b0206e416986bade8c1012bded20381f8 (diff)
config: Add support for some enums
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_config.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/tests/elementary/elm_test_config.c b/src/tests/elementary/elm_test_config.c
index ed9745c..1f2f1bb 100644
--- a/src/tests/elementary/elm_test_config.c
+++ b/src/tests/elementary/elm_test_config.c
@@ -38,6 +38,13 @@ START_TEST (elm_config_eoapi)
38 fail_if(!eina_streq(efl_config_string_get(cfg, #opt), val)); \ 38 fail_if(!eina_streq(efl_config_string_get(cfg, #opt), val)); \
39 } while (0) 39 } while (0)
40 40
41#define CONFIG_CHKE(opt, ival, sval) do { \
42 elm_config_ ## opt ## _set(ival); \
43 fail_if(!eina_streq(efl_config_string_get(cfg, #opt), sval)); \
44 fail_if(!efl_config_string_set(cfg, #opt, sval)); \
45 fail_if(!eina_streq(efl_config_string_get(cfg, #opt), sval)); \
46 } while (0)
47
41 CONFIG_CHKB(scroll_bounce_enabled, !old); 48 CONFIG_CHKB(scroll_bounce_enabled, !old);
42 CONFIG_CHKD(scroll_bounce_friction, 0); 49 CONFIG_CHKD(scroll_bounce_friction, 0);
43 CONFIG_CHKD(scroll_page_scroll_friction, 0); 50 CONFIG_CHKD(scroll_page_scroll_friction, 0);
@@ -62,10 +69,10 @@ START_TEST (elm_config_eoapi)
62 CONFIG_CHKD(scroll_thumbscroll_acceleration_threshold, 0); 69 CONFIG_CHKD(scroll_thumbscroll_acceleration_threshold, 0);
63 CONFIG_CHKD(scroll_thumbscroll_acceleration_time_limit, 0); 70 CONFIG_CHKD(scroll_thumbscroll_acceleration_time_limit, 0);
64 CONFIG_CHKD(scroll_thumbscroll_acceleration_weight, 0); 71 CONFIG_CHKD(scroll_thumbscroll_acceleration_weight, 0);
65 //focus_autoscroll_mode 72 CONFIG_CHKE(focus_autoscroll_mode, EFL_UI_FOCUS_AUTOSCROLL_MODE_NONE, "none");
66 //slider_indicator_visible_mode 73 CONFIG_CHKE(slider_indicator_visible_mode, EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS, "always");
67 CONFIG_CHKD(longpress_timeout, 0); 74 CONFIG_CHKD(longpress_timeout, 0);
68 //softcursor_mode 75 CONFIG_CHKE(softcursor_mode, EFL_UI_SOFTCURSOR_MODE_ON, "on");
69 CONFIG_CHKD(tooltip_delay, 0); 76 CONFIG_CHKD(tooltip_delay, 0);
70 CONFIG_CHKB(cursor_engine_only, 0); 77 CONFIG_CHKB(cursor_engine_only, 0);
71 CONFIG_CHKD(scale, 0); 78 CONFIG_CHKD(scale, 0);
@@ -91,7 +98,7 @@ START_TEST (elm_config_eoapi)
91 CONFIG_CHKB(focus_highlight_enabled, !old); 98 CONFIG_CHKB(focus_highlight_enabled, !old);
92 CONFIG_CHKB(focus_highlight_animate, 0); 99 CONFIG_CHKB(focus_highlight_animate, 0);
93 CONFIG_CHKB(focus_highlight_clip_disabled, !old); 100 CONFIG_CHKB(focus_highlight_clip_disabled, !old);
94 //focus_move_policy 101 CONFIG_CHKE(focus_move_policy, EFL_UI_FOCUS_MOVE_POLICY_IN, "in");
95 CONFIG_CHKB(item_select_on_focus_disabled, !old); 102 CONFIG_CHKB(item_select_on_focus_disabled, !old);
96 CONFIG_CHKB(first_item_focus_on_first_focusin, 0); 103 CONFIG_CHKB(first_item_focus_on_first_focusin, 0);
97 CONFIG_CHKB(mirrored, 0); 104 CONFIG_CHKB(mirrored, 0);