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 21:39:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-24 17:10:21 +0900
commit0f6268ff44ad3f4f75340b0a171c1f7418e4291e (patch)
tree707e522adde14faf9056aa07c9f7bd53b5633c98 /src/tests/elementary/elm_test_config.c
parent54e515bdca1dca97efbd60ee1a3800ae1cabc095 (diff)
win: Attach config API with eo compositing
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_config.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/tests/elementary/elm_test_config.c b/src/tests/elementary/elm_test_config.c
index 51eee4f..f74d492 100644
--- a/src/tests/elementary/elm_test_config.c
+++ b/src/tests/elementary/elm_test_config.c
@@ -142,11 +142,34 @@ START_TEST (elm_config_eoapi)
142 fail(channels[i].name); 142 fail(channels[i].name);
143 } 143 }
144 144
145
146
145 elm_shutdown(); 147 elm_shutdown();
146} 148}
147END_TEST 149END_TEST
148 150
151START_TEST (elm_config_win)
152{
153 elm_init(1, NULL);
154
155 Eo *cfg = eo_provider_find(ecore_main_loop_get(), EFL_CONFIG_INTERFACE);
156 fail_if(!cfg);
157
158 Eo *win = eo_add(EFL_UI_WIN_CLASS, NULL);
159 Eo *cfg2 = eo_provider_find(win, EFL_CONFIG_INTERFACE);
160 fail_if(cfg != cfg2);
161
162 elm_config_cache_flush_interval_set(42);
163 fail_if(efl_config_int_get(win, "cache_flush_interval") != 42);
164
165 eo_del(win);
166 elm_shutdown();
167}
168END_TEST
169
170
149void elm_test_config(TCase *tc) 171void elm_test_config(TCase *tc)
150{ 172{
151 tcase_add_test(tc, elm_config_eoapi); 173 tcase_add_test(tc, elm_config_eoapi);
174 tcase_add_test(tc, elm_config_win);
152} 175}