elm test_actionslider.c: Cover more APIs. Patch by Shinwoo Kim
<kimcinoo@gmail.com> On Thu, Feb 16, 2012 at 10:20 AM, cnook <kimcinoo@gmail.com> wrote: Dear All, Hello~ As you guess, the patch is for the elementary_test. Please review the patch and give any feedbacks. The test_actionslider patch is mainly for elm_actionslider_xxx_get() APIs. It would not be a good idea to add test code for such APIs. So I have planed to add test code except elm_xxx_get() APIs Sincerely, Shinwoo Kim. SVN revision: 68054
This commit is contained in:
parent
350c6c3235
commit
2761d21a75
|
@ -6,8 +6,66 @@
|
|||
|
||||
static void _pos_selected_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Elm_Actionslider_Pos ipos, mpos, epos;
|
||||
|
||||
printf("Selection: %s\n", (char *)event_info);
|
||||
printf("Label selected: %s\n", elm_actionslider_selected_label_get(obj));
|
||||
|
||||
ipos = elm_actionslider_indicator_pos_get(obj);
|
||||
|
||||
switch (ipos)
|
||||
{
|
||||
case ELM_ACTIONSLIDER_NONE:
|
||||
printf("actionslider indicator pos: none!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_LEFT:
|
||||
printf("actionslider indicator pos: left!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_CENTER:
|
||||
printf("actionslider indicator pos: center!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_RIGHT:
|
||||
printf("actionslider indicator pos: right!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_ALL:
|
||||
printf("actionslider indicator pos: all!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
mpos = elm_actionslider_magnet_pos_get(obj);
|
||||
|
||||
switch (mpos)
|
||||
{
|
||||
case ELM_ACTIONSLIDER_NONE:
|
||||
printf("actionslider magnet pos: none!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_LEFT:
|
||||
printf("actionslider magnet pos: left!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_CENTER:
|
||||
printf("actionslider magnet pos: center!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_RIGHT:
|
||||
printf("actionslider magnet pos: right!\n");
|
||||
break;
|
||||
case ELM_ACTIONSLIDER_ALL:
|
||||
printf("actionslider magnet pos: all!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
epos = elm_actionslider_enabled_pos_get(obj);
|
||||
|
||||
if (epos)
|
||||
{
|
||||
printf("actionslider enabled pos: ");
|
||||
if (epos & ELM_ACTIONSLIDER_LEFT)
|
||||
printf("left ");
|
||||
if (epos & ELM_ACTIONSLIDER_CENTER)
|
||||
printf("center ");
|
||||
if (epos & ELM_ACTIONSLIDER_RIGHT)
|
||||
printf("right ");
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue