From: Jaehwan Kim Date: Tue, 15 Feb 2011 08:48:04 +0000 (+0900) Subject: [scroller] remove elm_smart_scroller* TC X-Git-Tag: REL_I9200_20110603-1~352 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1206d3a774e43b5eb411e5ae7d5ed1b24a76f31;p=framework%2Fuifw%2Felementary.git [scroller] remove elm_smart_scroller* TC --- diff --git a/TC/elm_ts/elm_scroller/Makefile b/TC/elm_ts/elm_scroller/Makefile deleted file mode 100755 index 725d1b1..0000000 --- a/TC/elm_ts/elm_scroller/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -CC ?= gcc - -TARGETS = utc_UIFW_elm_scroller_add_func \ - utc_UIFW_elm_scroller_content_set_func \ - utc_UIFW_elm_scroller_content_unset_func \ - utc_UIFW_elm_scroller_custom_widget_base_theme_set_func \ - utc_UIFW_elm_scroller_content_min_limit_func \ - utc_UIFW_elm_scroller_policy_get_func \ - utc_UIFW_elm_scroller_policy_set_func \ - utc_UIFW_elm_scroller_region_get_func \ - utc_UIFW_elm_scroller_region_show_func \ - utc_UIFW_elm_scroller_child_size_get_func \ - utc_UIFW_elm_scroller_bounce_set_func \ - utc_UIFW_elm_scroller_page_relative_set_func \ - utc_UIFW_elm_scroller_page_size_set_func \ - utc_UIFW_elm_scroller_region_bring_in_func \ - utc_UIFW_elm_scroller_page_move_set_func \ - utc_UIFW_elm_scroller_propagate_events_set_func - - - -PKGS = elementary - -LDFLAGS = `pkg-config --libs $(PKGS)` -LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s - -CFLAGS = -I. `pkg-config --cflags $(PKGS)` -CFLAGS += -I$(TET_ROOT)/inc/tet3 -CFLAGS += -Wall - -all: $(TARGETS) - -$(TARGET): %: %.c - $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) - -clean: - rm -f $(TARGETS) - rm -f tet_captured - rm -f *~ diff --git a/TC/elm_ts/elm_scroller/tc_gen.sh b/TC/elm_ts/elm_scroller/tc_gen.sh deleted file mode 100755 index a55200a..0000000 --- a/TC/elm_ts/elm_scroller/tc_gen.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -TMPSTR=$0 -SCRIPT=${TMPSTR##*/} - -if [ $# -lt 3 ]; then - echo "Usage) $SCRIPT module_name winset_name api_name" - exit 1 -fi - -MODULE=$1 -WINSET=$2 -API=$3 -TEMPLATE=utc_MODULE_API_func.c.in -TESTCASE=utc_${MODULE}_${API}_func - -sed -e ' - s^@API@^'"$API"'^g - s^@MODULE@^'"$MODULE"'^g - ' $TEMPLATE > $TESTCASE.c - -if [ ! -e "$TESTCASE.c" ]; then - echo "Failed" - exit 1 -fi - -echo "/elm_ts/$WINSET/$TESTCASE" >> tslist - -echo "Testcase file is $TESTCASE.c" -echo "$TESTCASE is added to tslist" -echo "Done" -echo "please put \"$TESTCASE\" as Target in Makefile" diff --git a/TC/elm_ts/elm_scroller/tslist b/TC/elm_ts/elm_scroller/tslist deleted file mode 100644 index 5e9a1b9..0000000 --- a/TC/elm_ts/elm_scroller/tslist +++ /dev/null @@ -1,16 +0,0 @@ -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func -/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func diff --git a/TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in b/TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in deleted file mode 100755 index 6c6febe..0000000 --- a/TC/elm_ts/elm_scroller/utc_MODULE_API_func.c.in +++ /dev/null @@ -1,104 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_@MODULE@_@API@_func_01(void); -static void utc_@MODULE@_@API@_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_@MODULE@_@API@_func_01, POSITIVE_TC_IDX }, - { utc_@MODULE@_@API@_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of @API@() - */ -static void utc_@MODULE@_@API@_func_01(void) -{ - int r = 0; - -/* - r = @API@(...); -*/ - if (!r) { - tet_infoline("@API@() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init @API@() - */ -static void utc_@MODULE@_@API@_func_02(void) -{ - int r = 0; - -/* - r = @API@(...); -*/ - if (r) { - tet_infoline("@API@() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/Makefile b/TC/elm_ts/scroller/Makefile old mode 100644 new mode 100755 index ab99168..725d1b1 --- a/TC/elm_ts/scroller/Makefile +++ b/TC/elm_ts/scroller/Makefile @@ -1,28 +1,23 @@ CC ?= gcc -TARGETS = utc_UIFW_elm_smart_scroller_add_func \ - utc_UIFW_elm_smart_scroller_bounce_allow_get_func \ - utc_UIFW_elm_smart_scroller_bounce_allow_set_func \ - utc_UIFW_elm_smart_scroller_child_pos_get_func \ - utc_UIFW_elm_smart_scroller_child_pos_set_func \ - utc_UIFW_elm_smart_scroller_child_region_show_func \ - utc_UIFW_elm_smart_scroller_child_set_func \ - utc_UIFW_elm_smart_scroller_child_viewport_size_get_func \ - utc_UIFW_elm_smart_scroller_edje_object_get_func \ - utc_UIFW_elm_smart_scroller_freeze_set_func \ - utc_UIFW_elm_smart_scroller_hold_set_func \ - utc_UIFW_elm_smart_scroller_page_move_set_func \ - utc_UIFW_elm_smart_scroller_page_size_get_func \ - utc_UIFW_elm_smart_scroller_page_size_set_func \ - utc_UIFW_elm_smart_scroller_paging_set_func \ - utc_UIFW_elm_smart_scroller_policy_get_func \ - utc_UIFW_elm_smart_scroller_policy_set_func \ - utc_UIFW_elm_smart_scroller_region_bring_in_func \ - utc_UIFW_elm_smart_scroller_single_dir_get_func \ - utc_UIFW_elm_smart_scroller_single_dir_set_func \ - utc_UIFW_elm_smart_scroller_step_size_get_func \ - utc_UIFW_elm_smart_scroller_step_size_set_func \ - utc_UIFW_elm_smart_scroller_widget_set_func +TARGETS = utc_UIFW_elm_scroller_add_func \ + utc_UIFW_elm_scroller_content_set_func \ + utc_UIFW_elm_scroller_content_unset_func \ + utc_UIFW_elm_scroller_custom_widget_base_theme_set_func \ + utc_UIFW_elm_scroller_content_min_limit_func \ + utc_UIFW_elm_scroller_policy_get_func \ + utc_UIFW_elm_scroller_policy_set_func \ + utc_UIFW_elm_scroller_region_get_func \ + utc_UIFW_elm_scroller_region_show_func \ + utc_UIFW_elm_scroller_child_size_get_func \ + utc_UIFW_elm_scroller_bounce_set_func \ + utc_UIFW_elm_scroller_page_relative_set_func \ + utc_UIFW_elm_scroller_page_size_set_func \ + utc_UIFW_elm_scroller_region_bring_in_func \ + utc_UIFW_elm_scroller_page_move_set_func \ + utc_UIFW_elm_scroller_propagate_events_set_func + + PKGS = elementary diff --git a/TC/elm_ts/scroller/tslist b/TC/elm_ts/scroller/tslist index 9ffbcce..5e9a1b9 100644 --- a/TC/elm_ts/scroller/tslist +++ b/TC/elm_ts/scroller/tslist @@ -1,23 +1,16 @@ -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_add_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_region_show_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_edje_object_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_freeze_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_hold_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_move_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_paging_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_region_bring_in_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_get_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_set_func -/elm_ts/scroller/utc_UIFW_elm_smart_scroller_widget_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func +/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_add_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_add_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_add_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_bounce_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_bounce_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_bounce_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_child_size_get_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_child_size_get_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_child_size_get_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_min_limit_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_min_limit_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_min_limit_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_unset_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_content_unset_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_content_unset_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_custom_widget_base_theme_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_move_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_move_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_move_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_relative_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_relative_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_relative_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_size_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_page_size_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_page_size_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_policy_get_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_get_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_policy_get_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_policy_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_policy_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_policy_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_propagate_events_set_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_bring_in_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_bring_in_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_bring_in_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_get_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_get_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_get_func.c diff --git a/TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_show_func.c similarity index 100% rename from TC/elm_ts/elm_scroller/utc_UIFW_elm_scroller_region_show_func.c rename to TC/elm_ts/scroller/utc_UIFW_elm_scroller_region_show_func.c diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_add_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_add_func.c deleted file mode 100755 index 30a1513..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_add_func.c +++ /dev/null @@ -1,104 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_add_func_01(void); -static void utc_UIFW_elm_smart_scroller_add_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_add_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_add_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_add() - */ -static void utc_UIFW_elm_smart_scroller_add_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - evas_object_show(scroll); - if (!scroll) { - tet_infoline("elm_smart_scroller_add() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_add() - */ -static void utc_UIFW_elm_smart_scroller_add_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll = elm_smart_scroller_add(NULL); - evas_object_show(scroll); - if (scroll) { - tet_infoline("elm_smart_scroller_add() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func .c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func .c deleted file mode 100755 index 6e6652f..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func .c +++ /dev/null @@ -1,122 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_bounce_allow_get() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_get(scroll ,&x,&y); - if ((x==1) &&(y==1)){ - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_bounce_allow_get() failed in positive test case"); - tet_result(TET_FAIL); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_bounce_allow_get() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_get(NULL, &x,&y); - if ((x==1) &&(y==1)){ - tet_infoline("elm_smart_scroller_bounce_allow_get() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func.c deleted file mode 100755 index 6e6652f..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_get_func.c +++ /dev/null @@ -1,122 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_bounce_allow_get() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_get(scroll ,&x,&y); - if ((x==1) &&(y==1)){ - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_bounce_allow_get() failed in positive test case"); - tet_result(TET_FAIL); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_bounce_allow_get() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_get(NULL, &x,&y); - if ((x==1) &&(y==1)){ - tet_infoline("elm_smart_scroller_bounce_allow_get() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_set_func.c deleted file mode 100755 index 6e0fc8c..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_bounce_allow_set_func.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_bounce_allow_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_bounce_allow_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_bounce_allow_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_bounce_allow_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_bounce_allow_set() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_set(scroll ,0,0); - elm_smart_scroller_bounce_allow_get(scroll ,&x,&y); - if ((x) &&(y)){ - tet_infoline("elm_smart_scroller_bounce_allow_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_bounce_allow_set() - */ -static void utc_UIFW_elm_smart_scroller_bounce_allow_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x ,y,sx,sy; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_bounce_allow_get(scroll, &x,&y); - elm_smart_scroller_bounce_allow_set(NULL,1,1); - elm_smart_scroller_bounce_allow_get(scroll, &sx,&sy); - if ((sx==x)&&(sy==y)){ - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_bounce_allow_set() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_get_func.c deleted file mode 100755 index d2d486d..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_get_func.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_child_pos_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_child_pos_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_child_pos_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_child_pos_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_child_pos_get() - */ -static void utc_UIFW_elm_smart_scroller_child_pos_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px, py, x=100, y=100; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_pos_set(scroll, x, y); - elm_smart_scroller_child_pos_get(scroll, &px, &py); - if ((x==px)&&(y==py)) { - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_child_pos_get() failed in positive test case"); - tet_result(TET_FAIL); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_child_pos_get() - */ -static void utc_UIFW_elm_smart_scroller_child_pos_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px,py,qx,qy,x=100, y=100; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_pos_get(scroll, &px, &py); - elm_smart_scroller_child_pos_set(NULL, x, y); - elm_smart_scroller_child_pos_get(scroll, &qx, &qy); - if ((qx==px)&&(qy==py)) { - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_child_pos_get() with parent as NULL failed in negative test case"); - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_set_func.c deleted file mode 100755 index 567450d..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_pos_set_func.c +++ /dev/null @@ -1,122 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_child_pos_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_child_pos_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_child_pos_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_child_pos_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_child_pos_set() - */ -static void utc_UIFW_elm_smart_scroller_child_pos_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px, py, x=100, y=100; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_pos_set(scroll, x, y); - elm_smart_scroller_child_pos_get(scroll, &px, &py); - if ((x==px)&&(y==py)) { - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_child_pos_set() failed in positive test case"); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_child_pos_set() - */ -static void utc_UIFW_elm_smart_scroller_child_pos_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px, py, x=100, y=100; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_pos_set(NULL, x, y); - elm_smart_scroller_child_pos_get(scroll, &px, &py); - if ((x==px)&&(y==py)) { - tet_infoline("elm_smart_scroller_child_pos_set() with parent as NULL failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_region_show_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_region_show_func.c deleted file mode 100755 index cea52c6..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_region_show_func.c +++ /dev/null @@ -1,152 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_child_region_show_func_01(void); -static void utc_UIFW_elm_smart_scroller_child_region_show_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_child_region_show_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_child_region_show_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_child_region_show() - */ -static void utc_UIFW_elm_smart_scroller_child_region_show_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled."); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_region_show(scroll,100,900,100,100); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_child_region_show() - */ -static void utc_UIFW_elm_smart_scroller_child_region_show_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px, py, x, y,w,h; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled."); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - evas_object_geometry_get(scroll, &x, &y, &w, &h); - elm_smart_scroller_child_region_show(NULL,100,900,w,h); - evas_object_geometry_get(scroll, &px, &py, NULL, NULL); - if ((px==x)&&(py==y)) { - tet_result(TET_PASS); - return; - } - tet_infoline("elm_smart_scroller_child_region_show() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_set_func.c deleted file mode 100755 index 52c23d0..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_set_func.c +++ /dev/null @@ -1,118 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_child_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_child_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_child_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_child_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_child_set() - */ -static void utc_UIFW_elm_smart_scroller_child_set_func_01(void) -{ - Evas_Object *scroll = NULL, *scroller=NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - scroller=elm_widget_parent_get(entry); - if (!scroller) { - tet_infoline("elm_smart_scroller_child_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_child_set() - */ -static void utc_UIFW_elm_smart_scroller_child_set_func_02(void) -{ - Evas_Object *scroll = NULL, *scroller=NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(NULL); - elm_smart_scroller_child_set(NULL,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - scroller=elm_widget_parent_get(entry); - if (scroller) { - tet_infoline("elm_smart_scroller_child_set() with parent as NULL failed in neagative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} 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 deleted file mode 100755 index 2096e47..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_child_viewport_size_get_func.c +++ /dev/null @@ -1,122 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_child_viewport_size_get() - */ -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 = 0,h = 0; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_viewport_size_get(scroll,&w,&h); - 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; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_child_viewport_size_get() - */ -static void utc_UIFW_elm_smart_scroller_child_viewport_size_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord w=0,h=0; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_viewport_size_get(NULL,&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; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_edje_object_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_edje_object_get_func.c deleted file mode 100755 index a5c9b08..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_edje_object_get_func.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_edje_object_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_edje_object_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_edje_object_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_edje_object_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_edje_object_get() - */ -static void utc_UIFW_elm_smart_scroller_edje_object_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Object *scroll_object = NULL; - int x,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - scroll_object = elm_smart_scroller_edje_object_get(scroll,&x,&y); - if (!scroll_object) { - - tet_infoline("elm_smart_scroller_edje_object_get() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_edje_object_get() - */ -static void utc_UIFW_elm_smart_scroller_edje_object_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Object *scroll_object = NULL; - int x,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - scroll_object = elm_smart_scroller_edje_object_get(NULL,&x,&y); - if (scroll_object) { - tet_infoline("elm_smart_scroller_edje_object_get() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_freeze_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_freeze_set_func.c deleted file mode 100755 index d67b580..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_freeze_set_func.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_freeze_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_freeze_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_freeze_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_freeze_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_freeze_set() - */ -static void utc_UIFW_elm_smart_scroller_freeze_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_freeze_set(scroll,1); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_freeze_set() - */ -static void utc_UIFW_elm_smart_scroller_freeze_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_freeze_set(scroll,0); - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_hold_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_hold_set_func.c deleted file mode 100755 index 9b821bb..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_hold_set_func.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_hold_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_hold_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_hold_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_hold_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_hold_set() - */ -static void utc_UIFW_elm_smart_scroller_hold_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_hold_set(scroll,1); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_hold_set() - */ -static void utc_UIFW_elm_smart_scroller_hold_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_hold_set(NULL,1); - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_move_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_move_set_func.c deleted file mode 100755 index 65cab59..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_move_set_func.c +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_page_move_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_page_move_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_page_move_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_page_move_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_page_move_set() - */ -static void utc_UIFW_elm_smart_scroller_page_move_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled." - ); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_page_move_set(scroll,1); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_page_move_set() - */ -static void utc_UIFW_elm_smart_scroller_page_move_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled." - ); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_page_move_set(NULL,1); - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_get_func.c deleted file mode 100755 index a94174e..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_get_func.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_page_size_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_page_size_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_page_size_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_page_size_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_page_size_get() - */ -static void utc_UIFW_elm_smart_scroller_page_size_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=450,sy=750; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_page_size_set(scroll,sx,sy); - elm_smart_scroller_page_size_get(scroll,&x,&y); - if ((x!=sx)&&(y!=sy)) { - - tet_infoline("elm_smart_scroller_page_size_get() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_page_size_get() - */ -static void utc_UIFW_elm_smart_scroller_page_size_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x=0,y=0,sx=450,sy=750; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_page_size_set(scroll,sx,sy); - elm_smart_scroller_page_size_get(NULL,&x,&y); - if ((x)&&(y)) { - tet_infoline("elm_smart_scroller_page_size_get() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_set_func.c deleted file mode 100755 index cbedf32..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_page_size_set_func.c +++ /dev/null @@ -1,126 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_page_size_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_page_size_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_page_size_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_page_size_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_page_size_set() - */ -static void utc_UIFW_elm_smart_scroller_page_size_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=450,sy=750,px,py; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_page_size_get(scroll,&x,&y); - elm_smart_scroller_page_size_set(scroll,sx,sy); - elm_smart_scroller_page_size_get(scroll,&px,&py); - if ((px!=sx)&&(py!=sy)) { - tet_infoline("elm_smart_scroller_page_size_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_page_size_set() - */ -static void utc_UIFW_elm_smart_scroller_page_size_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=450,sy=750,px,py; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_page_size_get(scroll,&x,&y); - elm_smart_scroller_page_size_set(NULL,sx,sy); - elm_smart_scroller_page_size_get(scroll,&px,&py); - if ((px!=x)&&(py!=y)) { - tet_infoline("elm_smart_scroller_page_size_set() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_paging_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_paging_set_func.c deleted file mode 100755 index f40d582..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_paging_set_func.c +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_paging_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_paging_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_paging_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_paging_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_paging_set() - */ -static void utc_UIFW_elm_smart_scroller_paging_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled." - ); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_paging_set(scroll,0.5,0.5); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_paging_set() - */ -static void utc_UIFW_elm_smart_scroller_paging_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled." - ); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_paging_set(NULL,0.5,0.5); - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_get_func.c deleted file mode 100755 index 645a4ac..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_get_func.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_policy_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_policy_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_policy_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_policy_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_policy_get() - */ -static void utc_UIFW_elm_smart_scroller_policy_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - int x,y; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_policy_set(scroll,ELM_SCROLLER_POLICY_ON,ELM_SCROLLER_POLICY_ON); - elm_smart_scroller_policy_get(scroll,&x,&y); - if ((x!=1)&&(y!=1)) { - tet_infoline("elm_smart_scroller_policy_get() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_policy_get() - */ -static void utc_UIFW_elm_smart_scroller_policy_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - int x=0,y=0; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_policy_set(scroll,ELM_SCROLLER_POLICY_ON,ELM_SCROLLER_POLICY_ON); - elm_smart_scroller_policy_get(NULL,&x,&y); - if ((x)&&(y)) { - - tet_infoline("elm_smart_scroller_policy_get() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_set_func.c deleted file mode 100755 index ed10622..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_policy_set_func.c +++ /dev/null @@ -1,127 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_policy_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_policy_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_policy_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_policy_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_policy_set() - */ -static void utc_UIFW_elm_smart_scroller_policy_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - int x,y,sx,sy; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e);; - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_policy_get(scroll,&x,&y); - elm_smart_scroller_policy_set(scroll,ELM_SCROLLER_POLICY_ON,ELM_SCROLLER_POLICY_ON); - elm_smart_scroller_policy_get(scroll,&sx,&sy); - if ((sx!=1)&&(sy!=1)) { - tet_infoline("elm_smart_scroller_policy_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_policy_set() - */ -static void utc_UIFW_elm_smart_scroller_policy_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - int x,y,sx,sy; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_policy_get(scroll,&x,&y); - elm_smart_scroller_policy_set(NULL,ELM_SCROLLER_POLICY_OFF,ELM_SCROLLER_POLICY_OFF); - elm_smart_scroller_policy_get(scroll,&sx,&sy); - if ((sx!=x)&&(sy!=y)) { - - tet_infoline("elm_smart_scroller_policy_set() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_region_bring_in_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_region_bring_in_func.c deleted file mode 100755 index ce89da5..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_region_bring_in_func.c +++ /dev/null @@ -1,152 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_region_bring_in_func_01(void); -static void utc_UIFW_elm_smart_scroller_region_bring_in_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_region_bring_in_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_region_bring_in_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_region_bring_in() - */ -static void utc_UIFW_elm_smart_scroller_region_bring_in_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled."); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_region_bring_in(scroll,100,900,NULL,NULL); - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_region_bring_in() - */ -static void utc_UIFW_elm_smart_scroller_region_bring_in_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord px, py, x, y,w,h; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, - "This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled.This is a multi-line entry at the bottom
" - "This can contain more than 1 line of text and be " - "scrolled around to allow for entering of lots of " - "content. It is also to test to see that autoscroll " - "moves to the right part of a larger multi-line " - "text entry that is inside of a scroller than can be " - "scrolled around, thus changing the expected position " - "as well as cursor changes updating auto-scroll when " - "it is enabled."); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - evas_object_geometry_get(scroll, &x, &y, &w, &h); - elm_smart_scroller_region_bring_in(NULL,100,900,w,h); - evas_object_geometry_get(scroll, &px, &py, NULL, NULL); - if ((px!=x)&&(py!=y)) { - tet_infoline("elm_smart_scroller_region_bring_in() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_get_func.c deleted file mode 100755 index 9898488..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_get_func.c +++ /dev/null @@ -1,122 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_single_dir_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_single_dir_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_single_dir_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_single_dir_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_single_dir_get() - */ -static void utc_UIFW_elm_smart_scroller_single_dir_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - x = elm_smart_scroller_single_dir_get(scroll); - if(x!=1) { - tet_infoline("elm_smart_scroller_single_dir_get() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_single_dir_get() - */ -static void utc_UIFW_elm_smart_scroller_single_dir_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - x = elm_smart_scroller_single_dir_get(NULL); - if (x==1) { - tet_infoline("elm_smart_scroller_single_dir_get() failed in negative test case with the argument as NULL"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_set_func.c deleted file mode 100755 index 3324386..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_single_dir_set_func.c +++ /dev/null @@ -1,126 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_single_dir_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_single_dir_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_single_dir_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_single_dir_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_single_dir_set() - */ -static void utc_UIFW_elm_smart_scroller_single_dir_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - elm_smart_scroller_single_dir_set(scroll,1); - x = elm_smart_scroller_single_dir_get(scroll); - if (x!=1) { - tet_infoline("elm_smart_scroller_single_dir_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_single_dir_set() - */ -static void utc_UIFW_elm_smart_scroller_single_dir_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Eina_Bool x , sx; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - x = elm_smart_scroller_single_dir_get(scroll); - elm_smart_scroller_single_dir_set(NULL, 0); - sx = elm_smart_scroller_single_dir_get(scroll); - if (sx!=x) { - - tet_infoline("elm_smart_scroller_single_dir_set() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_get_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_get_func.c deleted file mode 100755 index 498e822..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_get_func.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_step_size_get_func_01(void); -static void utc_UIFW_elm_smart_scroller_step_size_get_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_step_size_get_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_step_size_get_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_step_size_get() - */ -static void utc_UIFW_elm_smart_scroller_step_size_get_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=50,sy=50; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_step_size_set(scroll,sx,sy); - elm_smart_scroller_step_size_get(scroll,&x,&y); - if ((x!=sx)&&(y!=sy)) { - tet_infoline("elm_smart_scroller_step_size_get() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_step_size_get() - */ -static void utc_UIFW_elm_smart_scroller_step_size_get_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x=0,y=0,sx=50,sy=50; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_step_size_set(scroll,sx,sy); - elm_smart_scroller_step_size_get(NULL,&x,&y); - if ((x)&&(y)) { - - tet_infoline("elm_smart_scroller_step_size_get() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_set_func.c deleted file mode 100755 index 5348316..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_step_size_set_func.c +++ /dev/null @@ -1,126 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_step_size_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_step_size_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_step_size_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_step_size_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_step_size_set() - */ -static void utc_UIFW_elm_smart_scroller_step_size_set_func_01(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=50,sy=50,px,py; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_step_size_get(scroll,&x,&y); - elm_smart_scroller_step_size_set(scroll,sx,sy); - elm_smart_scroller_step_size_get(scroll,&px,&py); - if ((px!=sx)&&(py!=sy)) { - tet_infoline("elm_smart_scroller_step_size_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_step_size_set() - */ -static void utc_UIFW_elm_smart_scroller_step_size_set_func_02(void) -{ - Evas_Object *scroll = NULL; - Evas_Object *entry = NULL; - Evas_Coord x,y,sx=50,sy=50,px,py; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - elm_smart_scroller_child_set( scroll,entry); - elm_entry_entry_set(entry, "This is a multi-line entry "); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_step_size_get(scroll,&x,&y); - elm_smart_scroller_step_size_set(NULL,sx,sy); - elm_smart_scroller_step_size_get(scroll,&px,&py); - if ((px!=x)&&(py!=y)) { - tet_infoline("elm_smart_scroller_step_size_set() failed in negative test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} diff --git a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_widget_set_func.c b/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_widget_set_func.c deleted file mode 100755 index d9b22c8..0000000 --- a/TC/elm_ts/scroller/utc_UIFW_elm_smart_scroller_widget_set_func.c +++ /dev/null @@ -1,118 +0,0 @@ -#include -#include - -// Definitions -// For checking the result of the positive test case. -#define TET_CHECK_PASS(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err == (x1)) \ - { \ - 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. -#define TET_CHECK_FAIL(x1, y...) \ -{ \ - Evas_Object *err = y; \ - if (err != (x1)) \ - { \ - tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \ - tet_result(TET_FAIL); \ - return; \ - } \ -} - - -Evas_Object *main_win; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_UIFW_elm_smart_scroller_widget_set_func_01(void); -static void utc_UIFW_elm_smart_scroller_widget_set_func_02(void); - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_UIFW_elm_smart_scroller_widget_set_func_01, POSITIVE_TC_IDX }, - { utc_UIFW_elm_smart_scroller_widget_set_func_02, NEGATIVE_TC_IDX }, - { NULL, 0 } -}; - -static void startup(void) -{ - tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ "); - elm_init(0, NULL); - main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC); - evas_object_show(main_win); -} - -static void cleanup(void) -{ - if ( NULL != main_win ) { - evas_object_del(main_win); - main_win = NULL; - } - elm_shutdown(); - tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); -} - -/** - * @brief Positive test case of elm_smart_scroller_widget_set() - */ -static void utc_UIFW_elm_smart_scroller_widget_set_func_01(void) -{ - Evas_Object *scroll = NULL, *scroller=NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(main_win); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_widget_set( scroll,entry); - scroller=elm_widget_parent_get(entry); - if (!scroller) { - tet_infoline("elm_smart_scroller_widget_set() failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -} - -/** - * @brief Negative test case of ug_init elm_smart_scroller_widget_set() - */ -static void utc_UIFW_elm_smart_scroller_widget_set_func_02(void) -{ - Evas_Object *scroll = NULL, *scroller=NULL; - Evas_Object *entry = NULL; - Evas *e; - e = evas_object_evas_get(main_win); - scroll= elm_smart_scroller_add(e); - entry = elm_entry_add(NULL); - evas_object_show(scroll); - evas_object_show(entry); - evas_object_resize(scroll,240,400); - evas_object_resize(entry,240,400); - elm_smart_scroller_widget_set(NULL,entry); - scroller=elm_widget_parent_get(entry); - if (scroller) { - tet_infoline("elm_smart_scroller_widget_set() with parent as NULL failed in positive test case"); - tet_result(TET_FAIL); - return; - } - tet_result(TET_PASS); -}