From: Rajeev Ranjan Date: Tue, 15 Mar 2011 08:58:45 +0000 (+0530) Subject: Updated the test cases to fix the errors related to testlist last argument not being... X-Git-Tag: REL_I9200_20110603-1~274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a17b50880f3c9bef7259b4603eab6fccb24eb747;p=framework%2Fuifw%2Felementary.git Updated the test cases to fix the errors related to testlist last argument not being NULL. Change-Id: Iab6ab3c615290803f1bfa2060c41179d66651a41 --- diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_add_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_add_func.c index dc1b3ff..84c950c 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_add_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_add_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_add_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_add_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_gap_timeout_set_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_gap_timeout_set_func.c index 6ecefd1..7a1103f 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_gap_timeout_set_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_gap_timeout_set_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_autorepeat_gap_timeout_set_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_autorepeat_gap_timeout_set_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) @@ -91,8 +92,8 @@ static void utc_UIFW_elm_button_autorepeat_gap_timeout_set_func_02(void) Evas_Object *button = NULL; button = elm_button_add(main_win); - elm_button_autorepeat_set(NULL, EINA_TRUE); - elm_button_autorepeat_gap_timeout_set(button, 0.1); + elm_button_autorepeat_set(button, EINA_TRUE); + elm_button_autorepeat_gap_timeout_set(NULL, 0.1); evas_object_del(button); button = NULL; tet_result(TET_PASS); diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_initial_timeout_set_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_initial_timeout_set_func.c index 0ce8216..d26a308 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_initial_timeout_set_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_initial_timeout_set_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_autorepeat_initial_timeout_set_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_autorepeat_initial_timeout_set_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) @@ -90,7 +91,8 @@ static void utc_UIFW_elm_button_autorepeat_initial_timeout_set_func_02(void) Evas_Object *button = NULL; button = elm_button_add(main_win); - elm_button_autorepeat_set(NULL, EINA_TRUE); + elm_button_autorepeat_set(button, EINA_TRUE); + elm_button_autorepeat_initial_timeout_set(NULL, 1.0); evas_object_del(button); button = NULL; tet_result(TET_PASS); diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_set_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_set_func.c index 05f5a24..ecee327 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_set_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_autorepeat_set_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_autorepeat_set_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_autorepeat_set_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_icon_get_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_icon_get_func.c index 58ee613..47ee49f 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_icon_get_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_icon_get_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_icon_get_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_icon_get_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_icon_set_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_icon_set_func.c index 3460597..23a3312 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_icon_set_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_icon_set_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_icon_set_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_icon_set_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_label_get_for_state_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_label_get_for_state_func.c index 7cf824a..35bd50c 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_label_get_for_state_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_label_get_for_state_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_label_get_for_state_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_label_get_for_state_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) @@ -74,8 +75,8 @@ static void utc_UIFW_elm_button_label_get_for_state_func_01(void) Evas_Object *button = NULL; char *buffer; button = elm_button_add(main_win); - elm_button_label_set(button, "default", UIControlStateDefault); - buffer = elm_button_label_get_for_state(btn, UIControlStateDefault); + elm_button_label_set_for_state(button, "default", UIControlStateDefault); + buffer = (char*)elm_button_label_get_for_state(button, UIControlStateDefault); if(!buffer) { tet_infoline("elm_button_label_get() failed in positive test case"); @@ -96,8 +97,8 @@ static void utc_UIFW_elm_button_label_get_for_state_func_02(void) Evas_Object *button = NULL; char *buffer; button = elm_button_add(main_win); - elm_button_label_set(button, _("default"), UIControlStateDefault); - buffer = elm_button_label_get(NULL, "default", UIControlStateDefault); + elm_button_label_set_for_state(button, "default", UIControlStateDefault); + buffer = (char*)elm_button_label_get_for_state(NULL, UIControlStateDefault); if(buffer) { evas_object_del(button); diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_label_get_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_label_get_func.c index 42cf7d5..fc6f35d 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_label_get_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_label_get_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_label_get_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_label_get_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_label_set_for_state_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_label_set_for_state_func.c index 31cc701..a4bca71 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_label_set_for_state_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_label_set_for_state_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_label_set_for_state_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_label_set_for_state_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void) diff --git a/TC/elm_ts/button/utc_UIFW_elm_button_label_set_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_label_set_func.c index db0a125..7a61afc 100644 --- a/TC/elm_ts/button/utc_UIFW_elm_button_label_set_func.c +++ b/TC/elm_ts/button/utc_UIFW_elm_button_label_set_func.c @@ -46,6 +46,7 @@ enum { struct tet_testlist tet_testlist[] = { { utc_UIFW_elm_button_label_set_func_01, POSITIVE_TC_IDX }, { utc_UIFW_elm_button_label_set_func_02, NEGATIVE_TC_IDX }, + { NULL, 0 } }; static void startup(void)