From b85986107bfddc18c849f0550f79984609108f50 Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Wed, 22 Sep 2010 18:42:48 +0530 Subject: [PATCH] [Scroller/TC] Modified Testcases. --- ...m_smart_scroller_child_viewport_size_get_func.c | 9 +++---- TC/elm_ts/segmentcontrol/tslist | 28 +++++++++++----------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func.c index 251de13..2096e47 100755 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func.c +++ b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func.c @@ -74,7 +74,7 @@ static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_01(void) { Evas_Object *scroll = NULL; Evas_Object *entry = NULL; - Evas_Coord w,h; + Evas_Coord w = 0,h = 0; Evas *e; e = evas_object_evas_get(main_win); scroll= elm_smart_scroller_add(e); @@ -85,8 +85,8 @@ static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_01(void) evas_object_resize(scroll,240,400); evas_object_resize(entry,240,400); elm_smart_scroller_child_viewport_size_get(scroll,&w,&h); - if (w!=232&&h!=392) { - + printf("\n w = %d h = %d\n", w, h); + if (!w && !h) { tet_infoline("elm_smart_scroller_child_viewport_size_get() failed in positive test case"); tet_result(TET_FAIL); return; @@ -112,7 +112,8 @@ static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_02(void) evas_object_resize(scroll,240,400); evas_object_resize(entry,240,400); elm_smart_scroller_child_viewport_size_get(NULL,&w,&h); - if ((w)&&(h)) { + printf("\n w = %d h = %d\n", w, h); + if ((w!=0)&&(h!=0)) { tet_infoline("elm_smart_scroller_child_viewport_size_get() failed in negative test case"); tet_result(TET_FAIL); return; diff --git a/TC/elm_ts/segmentcontrol/tslist b/TC/elm_ts/segmentcontrol/tslist index e45c415..3129341 100644 --- a/TC/elm_ts/segmentcontrol/tslist +++ b/TC/elm_ts/segmentcontrol/tslist @@ -1,15 +1,15 @@ -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_add_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_add_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_count_get_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_del_at_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_del_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_get_at_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_icon_get_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_index_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_insert_at_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_label_get_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_object_get_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_selected_get_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_selected_set_func -elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_label_object_set_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_add_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_add_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_count_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_del_at_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_del_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_get_at_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_icon_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_index_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_insert_at_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_label_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_object_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_selected_get_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_selected_set_func +/elm_ts/segmentcontrol/utc_UIFW_elm_segment_control_item_label_object_set_func -- 2.7.4