summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/test.c2
-rw-r--r--src/bin/test_slider.c25
2 files changed, 27 insertions, 0 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index ed33f630c..2e0ecaf05 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -93,6 +93,7 @@ void test_inwin2(void *data, Evas_Object *obj, void *event_info);
93void test_scaling(void *data, Evas_Object *obj, void *event_info); 93void test_scaling(void *data, Evas_Object *obj, void *event_info);
94void test_scaling2(void *data, Evas_Object *obj, void *event_info); 94void test_scaling2(void *data, Evas_Object *obj, void *event_info);
95void test_slider(void *data, Evas_Object *obj, void *event_info); 95void test_slider(void *data, Evas_Object *obj, void *event_info);
96void test_slider_indicator_visible_mode(void *data, Evas_Object *obj, void *event_info);
96void test_actionslider(void *data, Evas_Object *obj, void *event_info); 97void test_actionslider(void *data, Evas_Object *obj, void *event_info);
97void test_genlist(void *data, Evas_Object *obj, void *event_info); 98void test_genlist(void *data, Evas_Object *obj, void *event_info);
98void test_genlist2(void *data, Evas_Object *obj, void *event_info); 99void test_genlist2(void *data, Evas_Object *obj, void *event_info);
@@ -737,6 +738,7 @@ add_tests:
737 //------------------------------// 738 //------------------------------//
738 ADD_TEST(NULL, "Range Values", "Spinner", test_spinner); 739 ADD_TEST(NULL, "Range Values", "Spinner", test_spinner);
739 ADD_TEST(NULL, "Range Values", "Slider", test_slider); 740 ADD_TEST(NULL, "Range Values", "Slider", test_slider);
741 ADD_TEST(NULL, "Range Values", "Slider Indicator Visible Mode", test_slider_indicator_visible_mode);
740 ADD_TEST(NULL, "Range Values", "Progressbar", test_progressbar); 742 ADD_TEST(NULL, "Range Values", "Progressbar", test_progressbar);
741 ADD_TEST(NULL, "Range Values", "Progressbar 2", test_progressbar2); 743 ADD_TEST(NULL, "Range Values", "Progressbar 2", test_progressbar2);
742 744
diff --git a/src/bin/test_slider.c b/src/bin/test_slider.c
index c856ca922..5b60d4f8e 100644
--- a/src/bin/test_slider.c
+++ b/src/bin/test_slider.c
@@ -309,3 +309,28 @@ test_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
309 309
310 evas_object_show(win); 310 evas_object_show(win);
311} 311}
312
313void
314test_slider_indicator_visible_mode(void *data EINA_UNUSED,
315 Evas_Object *obj EINA_UNUSED,
316 void *event_info EINA_UNUSED)
317{
318 Evas_Object *win = NULL, *bx = NULL, *fr = NULL, *bx2 = NULL, *sl = NULL;
319
320 win = elm_win_util_standard_add("slider-indicator-visible-mode",
321 "Slider Indicator Visible Mode");
322 elm_win_autodel_set(win, EINA_TRUE);
323
324 bx = elm_box_add(win);
325 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
326 elm_win_resize_object_add(win, bx);
327 evas_object_show(bx);
328
329 fr = elm_frame_add(bx);
330 evas_object_size_hint_weight_set(fr, EVAS_HINT_EXPAND, 0.0);
331 evas_object_size_hint_align_set(fr, EVAS_HINT_FILL, EVAS_HINT_FILL);
332 elm_box_pack_end(bx, fr);
333 evas_object_show(fr);
334
335 evas_object_show(win);
336}