{ \
Evas_Object *err = y; \
if (err == (x1)) \
- { \
- tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
// For checking the result of the negative test case.
{ \
Evas_Object *err = y; \
if (err != (x1)) \
- { \
- tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
- tet_result(TET_FAIL); \
- return; \
- } \
+ { \
+ tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+ tet_result(TET_FAIL); \
+ return; \
+ } \
}
struct tet_testlist tet_testlist[] = {
{ utc_UIFW_elm_genlist_no_select_mode_get_func_01, POSITIVE_TC_IDX },
{ utc_UIFW_elm_genlist_no_select_mode_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
};
-static char *_gl_label_get( const void *data, Evas_Object *obj, const char *part )
+static char *_gl_text_get( const void *data, Evas_Object *obj, const char *part )
{
int index = (int) data;
}
static void startup(void)
{
- Elm_Genlist_Item *item = NULL;
+ Elm_Object_Item *item = NULL;
int index = 0;
tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
elm_init(0, NULL);
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_show(main_win);
+ evas_object_show(main_win);
genlist = elm_genlist_add(main_win);
evas_object_show(genlist);
elm_win_resize_object_add(main_win, genlist);
evas_object_size_hint_align_set(genlist, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
itc.item_style = "1line_textonly";
- itc.func.label_get = _gl_label_get;
- itc.func.icon_get = NULL;
+ itc.func.text_get = _gl_text_get;
+ itc.func.content_get = NULL;
itc.func.state_get = NULL;
itc.func.del = NULL;
for (index = 0; index < 8; index++) {
{
if ( NULL != main_win ) {
evas_object_del(main_win);
- main_win = NULL;
+ main_win = NULL;
}
elm_shutdown();
tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
*/
static void utc_UIFW_elm_genlist_no_select_mode_get_func_01(void)
{
- Eina_Bool res = EINA_FALSE;
+ Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
- res = elm_genlist_no_select_mode_get(genlist);
+ elm_genlist_no_select_mode_set(genlist, my_mode);
+ ret_mode = elm_genlist_no_select_mode_get(genlist);
- if (!res) {
+ if (ret_mode != my_mode) {
tet_infoline("elm_genlist_no_select_mode_get() failed in positive test case");
tet_result(TET_FAIL);
return;
*/
static void utc_UIFW_elm_genlist_no_select_mode_get_func_02(void)
{
- Eina_Bool res = EINA_FALSE;
+ Eina_Bool ret_mode = EINA_FALSE, my_mode = EINA_TRUE;
- res = elm_genlist_no_select_mode_get(genlist);
- if (res) {
+ elm_genlist_no_select_mode_set(genlist, my_mode);
+ ret_mode = elm_genlist_no_select_mode_get(NULL);
+
+ if (ret_mode == my_mode) {
tet_infoline("elm_genlist_no_select_mode_get() failed in negative test case");
tet_result(TET_FAIL);
return;