From dcf18616cdb2b46310d4f6ca9d4cff1cd0dbffe8 Mon Sep 17 00:00:00 2001 From: Sohyun Kim Date: Fri, 29 Oct 2010 20:43:21 +0900 Subject: [PATCH] [elm_transit]add testcases --- TC/elm_ts/transit/tc_gen.sh | 32 ++++++ TC/elm_ts/transit/tslist | 26 +++++ TC/elm_ts/transit/utc_MODULE_API_func.c.in | 104 +++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_blend_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_color_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func.c | 98 ++++++++++++++++++ .../utc_UIFW_elm_fx_image_animation_add_func.c | 101 ++++++++++++++++++ .../utc_UIFW_elm_fx_resizable_flip_add_func.c | 98 ++++++++++++++++++ .../transit/utc_UIFW_elm_fx_resizing_add_func.c | 98 ++++++++++++++++++ .../transit/utc_UIFW_elm_fx_rotation3d_add_func.c | 104 +++++++++++++++++++ .../transit/utc_UIFW_elm_fx_rotation_add_func.c | 98 ++++++++++++++++++ .../transit/utc_UIFW_elm_fx_translation_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func.c | 98 ++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_transit_add_func.c | 103 +++++++++++++++++++ .../utc_UIFW_elm_transit_auto_reverse_set_func.c | 107 +++++++++++++++++++ ...UIFW_elm_transit_completion_callback_set_func.c | 112 ++++++++++++++++++++ .../utc_UIFW_elm_transit_curve_style_set_func.c | 108 ++++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_transit_del_func.c | 106 +++++++++++++++++++ ...IFW_elm_transit_event_block_disabled_get_func.c | 111 ++++++++++++++++++++ ...IFW_elm_transit_event_block_disabled_set_func.c | 113 +++++++++++++++++++++ .../transit/utc_UIFW_elm_transit_fx_clear_func.c | 111 ++++++++++++++++++++ .../transit/utc_UIFW_elm_transit_fx_insert_func.c | 111 ++++++++++++++++++++ .../transit/utc_UIFW_elm_transit_pause_func.c | 107 +++++++++++++++++++ .../transit/utc_UIFW_elm_transit_repeat_set_func.c | 107 +++++++++++++++++++ .../transit/utc_UIFW_elm_transit_resume_func.c | 109 ++++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_transit_run_func.c | 105 +++++++++++++++++++ TC/elm_ts/transit/utc_UIFW_elm_transit_stop_func.c | 107 +++++++++++++++++++ TC/tet_scen_arm | 2 +- 30 files changed, 2865 insertions(+), 1 deletion(-) create mode 100755 TC/elm_ts/transit/tc_gen.sh create mode 100644 TC/elm_ts/transit/tslist create mode 100755 TC/elm_ts/transit/utc_MODULE_API_func.c.in create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_blend_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_color_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_image_animation_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_resizable_flip_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_resizing_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_rotation3d_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_rotation_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_translation_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_add_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_auto_reverse_set_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_completion_callback_set_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_curve_style_set_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_del_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_get_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_set_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_fx_clear_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_fx_insert_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_pause_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_repeat_set_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_resume_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_run_func.c create mode 100644 TC/elm_ts/transit/utc_UIFW_elm_transit_stop_func.c diff --git a/TC/elm_ts/transit/tc_gen.sh b/TC/elm_ts/transit/tc_gen.sh new file mode 100755 index 0000000..a55200a --- /dev/null +++ b/TC/elm_ts/transit/tc_gen.sh @@ -0,0 +1,32 @@ +#!/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/transit/tslist b/TC/elm_ts/transit/tslist new file mode 100644 index 0000000..358e583 --- /dev/null +++ b/TC/elm_ts/transit/tslist @@ -0,0 +1,26 @@ +/elm_ts/transit/utc_UIFW_elm_transit_add_func +/elm_ts/transit/utc_UIFW_elm_transit_del_func +/elm_ts/transit/utc_UIFW_elm_transit_run_func +/elm_ts/transit/utc_UIFW_elm_transit_stop_func +/elm_ts/transit/utc_UIFW_elm_transit_completion_callback_set_func +/elm_ts/transit/utc_UIFW_elm_transit_repeat_set_func +/elm_ts/transit/utc_UIFW_elm_transit_auto_reverse_set_func +/elm_ts/transit/utc_UIFW_elm_transit_curve_style_set_func +/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_set_func +/elm_ts/transit/utc_UIFW_elm_transit_fx_insert_func +/elm_ts/transit/utc_UIFW_elm_transit_fx_clear_func +/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_get_func +/elm_ts/transit/utc_UIFW_elm_transit_pause_func +/elm_ts/transit/utc_UIFW_elm_transit_resume_func +/elm_ts/transit/utc_UIFW_elm_fx_translation_add_func +/elm_ts/transit/utc_UIFW_elm_fx_resizing_add_func +/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func +/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func +/elm_ts/transit/utc_UIFW_elm_fx_blend_add_func +/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func +/elm_ts/transit/utc_UIFW_elm_fx_rotation_add_func +/elm_ts/transit/utc_UIFW_elm_fx_rotation3d_add_func +/elm_ts/transit/utc_UIFW_elm_fx_color_add_func +/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func +/elm_ts/transit/utc_UIFW_elm_fx_resizable_flip_add_func +/elm_ts/transit/utc_UIFW_elm_fx_image_animation_add_func diff --git a/TC/elm_ts/transit/utc_MODULE_API_func.c.in b/TC/elm_ts/transit/utc_MODULE_API_func.c.in new file mode 100755 index 0000000..6c6febe --- /dev/null +++ b/TC/elm_ts/transit/utc_MODULE_API_func.c.in @@ -0,0 +1,104 @@ +#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/transit/utc_UIFW_elm_fx_blend_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_blend_add_func.c new file mode 100644 index 0000000..5e89b02 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_blend_add_func.c @@ -0,0 +1,98 @@ +#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_fx_blend_add_func_01(void); +static void utc_UIFW_elm_fx_blend_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_blend_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_blend_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_fx_blend_add() + */ +static void utc_UIFW_elm_fx_blend_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_blend_add(main_win, main_win); + + if (effect == NULL) { + tet_infoline("elm_fx_blend_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_blend_add() + */ +static void utc_UIFW_elm_fx_blend_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_blend_add(NULL, NULL); + + if (effect != NULL) { + tet_infoline("elm_fx_blend_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_color_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_color_add_func.c new file mode 100644 index 0000000..805d647 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_color_add_func.c @@ -0,0 +1,98 @@ +#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_fx_color_add_func_01(void); +static void utc_UIFW_elm_fx_color_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_color_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_color_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_fx_color_add() + */ +static void utc_UIFW_elm_fx_color_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_color_add(main_win, 255, 255, 0, 255, 255, 255, 255, 255); + + if (effect == NULL) { + tet_infoline("elm_fx_color_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_color_add() + */ +static void utc_UIFW_elm_fx_color_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_color_add(NULL, 255, 255, 0, 255, 255, 255, 255, 255); + + if (effect != NULL) { + tet_infoline("elm_fx_color_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func.c new file mode 100644 index 0000000..252e9fb --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_fade_add_func.c @@ -0,0 +1,98 @@ +#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_fx_fade_add_func_01(void); +static void utc_UIFW_elm_fx_fade_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_fade_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_fade_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_fx_fade_add() + */ +static void utc_UIFW_elm_fx_fade_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_fade_add(main_win, main_win); + + if (effect == NULL) { + tet_infoline("elm_fx_fade_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_fade_add() + */ +static void utc_UIFW_elm_fx_fade_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_fade_add(NULL, NULL); + + if (effect != NULL) { + tet_infoline("elm_fx_fade_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func.c new file mode 100644 index 0000000..5bcc1ec --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_flip_add_func.c @@ -0,0 +1,98 @@ +#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_fx_flip_add_func_01(void); +static void utc_UIFW_elm_fx_flip_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_flip_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_flip_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_fx_flip_add() + */ +static void utc_UIFW_elm_fx_flip_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_flip_add(main_win, main_win, ELM_FX_FLIP_AXIS_Y, EINA_TRUE); + + if (effect == NULL) { + tet_infoline("elm_fx_flip_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_flip_add() + */ +static void utc_UIFW_elm_fx_flip_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_flip_add(NULL, main_win, ELM_FX_FLIP_AXIS_Y, EINA_TRUE); + + if (effect != NULL) { + tet_infoline("elm_fx_flip_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_image_animation_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_image_animation_add_func.c new file mode 100644 index 0000000..583b3f9 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_image_animation_add_func.c @@ -0,0 +1,101 @@ +#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_fx_image_animation_add_func_01(void); +static void utc_UIFW_elm_fx_image_animation_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_image_animation_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_image_animation_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_fx_image_animation_add() + */ +static void utc_UIFW_elm_fx_image_animation_add_func_01(void) +{ + Evas_Object *icon = elm_icon_add(main_win); + const char* icon_path[] = {"/usr/share/beat_winset_test/icon/sky_01.jpg", "/usr/share/beat-winset-test/icon/sky_02.jpg"}; + Elm_Effect *effect = elm_fx_image_animation_add(icon, icon_path, 2); + + if (effect == NULL) { + tet_infoline("elm_fx_image_animation_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_image_animation_add() + */ +static void utc_UIFW_elm_fx_image_animation_add_func_02(void) +{ + const char* icon_path[] = {"/usr/share/beat_winset_test/icon/sky_01.jpg", "/usr/share/beat-winset-test/icon/sky_02.jpg"}; + Elm_Effect *effect = elm_fx_image_animation_add(NULL, icon_path, 2); + + if (effect != NULL) { + tet_infoline("elm_fx_image_animation_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_resizable_flip_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_resizable_flip_add_func.c new file mode 100644 index 0000000..38c20dd --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_resizable_flip_add_func.c @@ -0,0 +1,98 @@ +#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_fx_resizable_flip_add_func_01(void); +static void utc_UIFW_elm_fx_resizable_flip_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_resizable_flip_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_resizable_flip_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_fx_resizable_flip_add() + */ +static void utc_UIFW_elm_fx_resizable_flip_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_resizable_flip_add(main_win, main_win, ELM_FX_FLIP_AXIS_Y, EINA_TRUE); + + if (effect == NULL) { + tet_infoline("elm_fx_resizable_flip_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_resizable_flip_add() + */ +static void utc_UIFW_elm_fx_resizable_flip_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_resizable_flip_add(NULL, main_win, ELM_FX_FLIP_AXIS_Y, EINA_TRUE); + + if (effect != NULL) { + tet_infoline("elm_fx_resizable_flip_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_resizing_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_resizing_add_func.c new file mode 100644 index 0000000..e70f897 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_resizing_add_func.c @@ -0,0 +1,98 @@ +#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_fx_resizing_add_func_01(void); +static void utc_UIFW_elm_fx_resizing_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_resizing_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_resizing_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_fx_resizing_add() + */ +static void utc_UIFW_elm_fx_resizing_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_resizing_add(main_win, 480, 800, 240, 400); + + if (effect == NULL) { + tet_infoline("elm_fx_resizing_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_resizing_add() + */ +static void utc_UIFW_elm_fx_resizing_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_resizing_add(NULL, 480, 800, 240, 400); + + if (effect != NULL) { + tet_infoline("elm_fx_resizing_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation3d_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation3d_add_func.c new file mode 100644 index 0000000..7320060 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation3d_add_func.c @@ -0,0 +1,104 @@ +#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_fx_rotation3d_add_func_01(void); +static void utc_UIFW_elm_fx_rotation3d_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_rotation3d_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_rotation3d_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_fx_rotation3d_add() + */ +static void utc_UIFW_elm_fx_rotation3d_add_func_01(void) +{ + float axis_dir[3] = {1.0, 1.0, 1.0}; + float axis_pos[3] = {0.0, 0.0, 0.0}; + + Elm_Effect *effect = elm_fx_rotation3d_add(main_win, 0, 360, axis_dir, axis_pos); + + if (effect = NULL) { + tet_infoline("elm_fx_rotation3d_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_rotation3d_add() + */ +static void utc_UIFW_elm_fx_rotation3d_add_func_02(void) +{ + float axis_dir[3] = {1.0, 1.0, 1.0}; + float axis_pos[3] = {0.0, 0.0, 0.0}; + + Elm_Effect *effect = elm_fx_rotation3d_add(NULL, 0, 360, axis_dir, axis_pos); + + if (effect != NULL) { + tet_infoline("elm_fx_rotation3d_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation_add_func.c new file mode 100644 index 0000000..191d308 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_rotation_add_func.c @@ -0,0 +1,98 @@ +#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_fx_rotation_add_func_01(void); +static void utc_UIFW_elm_fx_rotation_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_rotation_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_rotation_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_fx_rotation_add() + */ +static void utc_UIFW_elm_fx_rotation_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_rotation_add(main_win, 0, 360, EINA_TRUE); + + if (effect == NULL) { + tet_infoline("elm_fx_rotation_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_rotation_add() + */ +static void utc_UIFW_elm_fx_rotation_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_rotation_add(NULL, 0, 360, EINA_TRUE); + + if (effect != NULL) { + tet_infoline("elm_fx_rotation_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_translation_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_translation_add_func.c new file mode 100644 index 0000000..e0ddde4 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_translation_add_func.c @@ -0,0 +1,98 @@ +#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_fx_translation_add_func_01(void); +static void utc_UIFW_elm_fx_translation_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_translation_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_translation_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_fx_translation_add() + */ +static void utc_UIFW_elm_fx_translation_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_translation_add(main_win, 0, 0, -480, 0); + + if (effect == NULL) { + tet_infoline("elm_fx_translation_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_translation_add() + */ +static void utc_UIFW_elm_fx_translation_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_translation_add(NULL, 0, 0, -480, 0); + + if (effect != NULL) { + tet_infoline("elm_fx_translation_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func.c new file mode 100644 index 0000000..e9dcdda --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_wipe_add_func.c @@ -0,0 +1,98 @@ +#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_fx_wipe_add_func_01(void); +static void utc_UIFW_elm_fx_wipe_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_wipe_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_wipe_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_fx_wipe_add() + */ +static void utc_UIFW_elm_fx_wipe_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_wipe_add(main_win, ELM_FX_WIPE_TYPE_SHOW, ELM_FX_WIPE_DIR_RIGHT); + + if (effect == NULL) { + tet_infoline("elm_fx_wipe_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_wipe_add() + */ +static void utc_UIFW_elm_fx_wipe_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_wipe_add(NULL, ELM_FX_WIPE_TYPE_SHOW, ELM_FX_WIPE_DIR_RIGHT); + + if (effect != NULL) { + tet_infoline("elm_fx_wipe_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func.c new file mode 100644 index 0000000..a3e91be --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_fx_zoom_add_func.c @@ -0,0 +1,98 @@ +#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_fx_zoom_add_func_01(void); +static void utc_UIFW_elm_fx_zoom_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_fx_zoom_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_fx_zoom_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_fx_zoom_add() + */ +static void utc_UIFW_elm_fx_zoom_add_func_01(void) +{ + Elm_Effect *effect = elm_fx_zoom_add(main_win, 0.6, 1.0); + + if (effect == NULL) { + tet_infoline("elm_fx_zoom_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_fx_zoom_add() + */ +static void utc_UIFW_elm_fx_zoom_add_func_02(void) +{ + Elm_Effect *effect = elm_fx_zoom_add(NULL, 0.6, 1.0); + + if (effect != NULL) { + tet_infoline("elm_fx_zoom_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_add_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_add_func.c new file mode 100644 index 0000000..9a781cd --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_add_func.c @@ -0,0 +1,103 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_add_func_01(void); +static void utc_UIFW_elm_transit_add_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_add_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_add() + */ +static void utc_UIFW_elm_transit_add_func_01(void) +{ + transit = elm_transit_add(main_win); + + if (!transit) { + tet_infoline("elm_transit_add() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_add() + */ +static void utc_UIFW_elm_transit_add_func_02(void) +{ + transit = elm_transit_add(NULL); + + if (transit) { + tet_infoline("elm_transit_add() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_auto_reverse_set_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_auto_reverse_set_func.c new file mode 100644 index 0000000..ecdfdc3 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_auto_reverse_set_func.c @@ -0,0 +1,107 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_auto_reverse_set_func_01(void); +static void utc_UIFW_elm_transit_auto_reverse_set_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_auto_reverse_set_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_auto_reverse_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_auto_reverse_set() + */ +static void utc_UIFW_elm_transit_auto_reverse_set_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_auto_reverse_set(transit, EINA_TRUE); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_auto_reverse_set() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_auto_reverse_set() + */ +static void utc_UIFW_elm_transit_auto_reverse_set_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_auto_reverse_set(NULL, EINA_TRUE); + elm_transit_run(transit, 1.0); + + /*if (r) { + tet_infoline("elm_transit_auto_reverse_set() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_completion_callback_set_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_completion_callback_set_func.c new file mode 100644 index 0000000..0f33152 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_completion_callback_set_func.c @@ -0,0 +1,112 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_completion_callback_set_func_01(void); +static void utc_UIFW_elm_transit_completion_callback_set_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_completion_callback_set_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_completion_callback_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; + } + if ( NULL != transit) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +void _transition_comp(void *data, Elm_Transit* transit) +{ + elm_transit_del(transit); + transit = NULL; +} +/** + * @brief Positive test case of elm_transit_completion_callback_set() + */ +static void utc_UIFW_elm_transit_completion_callback_set_func_01(void) +{ + elm_transit_add(main_win); + elm_transit_completion_callback_set(transit, _transition_comp, NULL); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_completion_callback_set() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_completion_callback_set() + */ +static void utc_UIFW_elm_transit_completion_callback_set_func_02(void) +{ + elm_transit_add(main_win); + elm_transit_completion_callback_set(NULL, _transition_comp, NULL); + elm_transit_run(transit, 1.0); + + /*if (r) { + tet_infoline("elm_transit_completion_callback_set() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_curve_style_set_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_curve_style_set_func.c new file mode 100644 index 0000000..f039ee4 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_curve_style_set_func.c @@ -0,0 +1,108 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_curve_style_set_func_01(void); +static void utc_UIFW_elm_transit_curve_style_set_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_curve_style_set_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_curve_style_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_curve_style_set() + */ +static void utc_UIFW_elm_transit_curve_style_set_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_curve_style_set(transit, ELM_ANIMATOR_CURVE_OUT); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_curve_style_set() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_curve_style_set() + */ +static void utc_UIFW_elm_transit_curve_style_set_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_curve_style_set(NULL, ELM_ANIMATOR_CURVE_OUT); + elm_transit_curve_style_set(transit, ELM_ANIMATOR_CURVE_OUT+1); + elm_transit_run(transit, 1.0); + + /*if (r) { + tet_infoline("elm_transit_curve_style_set() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_del_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_del_func.c new file mode 100644 index 0000000..27c4ab6 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_del_func.c @@ -0,0 +1,106 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_del_func_01(void); +static void utc_UIFW_elm_transit_del_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_del_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_del_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_del() + */ +static void utc_UIFW_elm_transit_del_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_del(transit); + transit = NULL; + + /*if (!r) { + tet_infoline("elm_transit_del() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_del() + */ +static void utc_UIFW_elm_transit_del_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_del(NULL); + + /*if (r) { + tet_infoline("elm_transit_del() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_get_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_get_func.c new file mode 100644 index 0000000..15e5378 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_get_func.c @@ -0,0 +1,111 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_event_block_disabled_get_func_01(void); +static void utc_UIFW_elm_transit_event_block_disabled_get_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_event_block_disabled_get_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_event_block_disabled_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_event_block_disabled_get() + */ +static void utc_UIFW_elm_transit_event_block_disabled_get_func_01(void) +{ + Eina_Bool r = EINA_FALSE; + + transit = elm_transit_add(main_win); + elm_transit_event_block_disabled_set(transit, EINA_TRUE); + r = elm_transit_event_block_disabled_get(transit); + + if (r == EINA_FALSE) { + tet_infoline("elm_transit_event_block_disabled_get() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_event_block_disabled_get() + */ +static void utc_UIFW_elm_transit_event_block_disabled_get_func_02(void) +{ + Eina_Bool r = EINA_FALSE; + + transit = elm_transit_add(main_win); + elm_transit_event_block_disabled_set(transit, EINA_TRUE); + r = elm_transit_event_block_disabled_get(NULL); + + if (r == EINA_TRUE) { + tet_infoline("elm_transit_event_block_disabled_get() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_set_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_set_func.c new file mode 100644 index 0000000..8337494 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_event_block_disabled_set_func.c @@ -0,0 +1,113 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_event_block_disbled_set_func_01(void); +static void utc_UIFW_elm_transit_event_block_disbled_set_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_event_block_disbled_set_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_event_block_disbled_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_event_block_disbled_set() + */ +static void utc_UIFW_elm_transit_event_block_disbled_set_func_01(void) +{ + Eina_Bool r = EINA_FALSE; + + elm_transit_add(transit); + elm_transit_event_block_disabled_set(transit, EINA_TRUE); + r = elm_transit_event_block_disabled_get(transit); + elm_transit_run(transit, 1.0); + + if (r == EINA_FALSE) { + tet_infoline("elm_transit_event_block_disbled_set() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_event_block_disbled_set() + */ +static void utc_UIFW_elm_transit_event_block_disbled_set_func_02(void) +{ + Eina_Bool r = EINA_FALSE; + + elm_transit_add(transit); + elm_transit_event_block_disabled_set(NULL, EINA_TRUE); + r = elm_transit_event_block_disabled_get(transit); + elm_transit_run(transit, 1.0); + + if (r = EINA_TRUE) { + tet_infoline("elm_transit_event_block_disbled_set() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_clear_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_clear_func.c new file mode 100644 index 0000000..d509130 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_clear_func.c @@ -0,0 +1,111 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_fx_clear_func_01(void); +static void utc_UIFW_elm_transit_fx_clear_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_fx_clear_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_fx_clear_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_fx_clear() + */ +static void utc_UIFW_elm_transit_fx_clear_func_01(void) +{ + transit = elm_transit_add(main_win); + Elm_Effect *effect = elm_fx_fade_add(main_win, main_win); + elm_transit_fx_insert(transit, effect); + elm_transit_fx_clear(transit); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_fx_clear() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_fx_clear() + */ +static void utc_UIFW_elm_transit_fx_clear_func_02(void) +{ + transit = elm_transit_add(main_win); + Elm_Effect *effect = elm_fx_fade_add(main_win, main_win); + elm_transit_fx_insert(transit, effect); + elm_transit_fx_clear(NULL); + elm_transit_run(transit, 1.0); + + /*if (r) { + tet_infoline("elm_transit_fx_clear() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_insert_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_insert_func.c new file mode 100644 index 0000000..024fe84 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_fx_insert_func.c @@ -0,0 +1,111 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_fx_insert_func_01(void); +static void utc_UIFW_elm_transit_fx_insert_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_fx_insert_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_fx_insert_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_fx_insert() + */ +static void utc_UIFW_elm_transit_fx_insert_func_01(void) +{ + Eina_Bool r = EINA_FALSE; + + transit = elm_transit_add(main_win); + Elm_Effect *effect = elm_fx_fade_add(main_win, main_win); + r = elm_transit_fx_insert(transit, effect); + + if (r == EINA_FALSE) { + tet_infoline("elm_transit_fx_insert() failed in positive test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_fx_insert() + */ +static void utc_UIFW_elm_transit_fx_insert_func_02(void) +{ + Eina_Bool r = EINA_FALSE; + + transit = elm_transit_add(main_win); + Elm_Effect *effect = elm_fx_fade_add(main_win, main_win); + r = elm_transit_fx_insert(transit, NULL); + + if (r = EINA_TRUE) { + tet_infoline("elm_transit_fx_insert() failed in negative test case"); + tet_result(TET_FAIL); + return; + } + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_pause_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_pause_func.c new file mode 100644 index 0000000..3b60075 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_pause_func.c @@ -0,0 +1,107 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_pause_func_01(void); +static void utc_UIFW_elm_transit_pause_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_pause_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_pause_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_pause() + */ +static void utc_UIFW_elm_transit_pause_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_pause(transit); + + /*if (!r) { + tet_infoline("elm_transit_pause() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_pause() + */ +static void utc_UIFW_elm_transit_pause_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_pause(NULL); + + /*if (r) { + tet_infoline("elm_transit_pause() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_repeat_set_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_repeat_set_func.c new file mode 100644 index 0000000..e6c2c84 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_repeat_set_func.c @@ -0,0 +1,107 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_repeat_set_func_01(void); +static void utc_UIFW_elm_transit_repeat_set_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_repeat_set_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_repeat_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_repeat_set() + */ +static void utc_UIFW_elm_transit_repeat_set_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_repeat_set(transit, 3); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_repeat_set() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_repeat_set() + */ +static void utc_UIFW_elm_transit_repeat_set_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_repeat_set(NULL, 3); + elm_transit_run(transit, 1.0); + + /*if (r) { + tet_infoline("elm_transit_repeat_set() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_resume_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_resume_func.c new file mode 100644 index 0000000..edfa822 --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_resume_func.c @@ -0,0 +1,109 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_resume_func_01(void); +static void utc_UIFW_elm_transit_resume_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_resume_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_resume_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; + } + if ( NULL != transit) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_resume() + */ +static void utc_UIFW_elm_transit_resume_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_pause(transit); + elm_transit_resume(transit); + + /*if (!r) { + tet_infoline("elm_transit_resume() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_resume() + */ +static void utc_UIFW_elm_transit_resume_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_pause(transit); + elm_transit_resume(NULL); + + /*if (r) { + tet_infoline("elm_transit_resume() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_run_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_run_func.c new file mode 100644 index 0000000..68b9bab --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_run_func.c @@ -0,0 +1,105 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_run_func_01(void); +static void utc_UIFW_elm_transit_run_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_run_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_run_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_run() + */ +static void utc_UIFW_elm_transit_run_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + + /*if (!r) { + tet_infoline("elm_transit_run() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_run() + */ +static void utc_UIFW_elm_transit_run_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(NULL, 1.0); + + /*if (r) { + tet_infoline("elm_transit_run() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/elm_ts/transit/utc_UIFW_elm_transit_stop_func.c b/TC/elm_ts/transit/utc_UIFW_elm_transit_stop_func.c new file mode 100644 index 0000000..003170f --- /dev/null +++ b/TC/elm_ts/transit/utc_UIFW_elm_transit_stop_func.c @@ -0,0 +1,107 @@ +#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; +Elm_Transit *transit; + +static void startup(void); +static void cleanup(void); + +void (*tet_startup)(void) = startup; +void (*tet_cleanup)(void) = cleanup; + +static void utc_UIFW_elm_transit_stop_func_01(void); +static void utc_UIFW_elm_transit_stop_func_02(void); + +enum { + POSITIVE_TC_IDX = 0x01, + NEGATIVE_TC_IDX, +}; + +struct tet_testlist tet_testlist[] = { + { utc_UIFW_elm_transit_stop_func_01, POSITIVE_TC_IDX }, + { utc_UIFW_elm_transit_stop_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; + } + if ( NULL != transit ) { + elm_transit_del(transit); + transit = NULL; + } + elm_shutdown(); + tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ "); +} + +/** + * @brief Positive test case of elm_transit_stop() + */ +static void utc_UIFW_elm_transit_stop_func_01(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_stop(transit); + + /*if (!r) { + tet_infoline("elm_transit_stop() failed in positive test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} + +/** + * @brief Negative test case of ug_init elm_transit_stop() + */ +static void utc_UIFW_elm_transit_stop_func_02(void) +{ + transit = elm_transit_add(main_win); + elm_transit_run(transit, 1.0); + elm_transit_stop(NULL); + + /*if (r) { + tet_infoline("elm_transit_stop() failed in negative test case"); + tet_result(TET_FAIL); + return; + }*/ + tet_result(TET_PASS); +} diff --git a/TC/tet_scen_arm b/TC/tet_scen_arm index a40e424..966fbb9 100644 --- a/TC/tet_scen_arm +++ b/TC/tet_scen_arm @@ -43,7 +43,7 @@ elm :include:/elm_ts/scrolled_entry/tslist :include:/elm_ts/entry/tslist :include:/elm_ts/dayselector/tslist - + :include:/elm_ts/transit/tslist #yhkim ch /telephony-framework/sim/unit/uts_tapi_verify_chv -- 2.7.4