[efl-upgrade]
authorJeahwan Kim <jae.hwan.kim@samsung.com>
Fri, 10 Sep 2010 10:43:41 +0000 (19:43 +0900)
committerJeahwan Kim <jae.hwan.kim@samsung.com>
Fri, 10 Sep 2010 10:43:41 +0000 (19:43 +0900)
Merge branch 'master' of jae.hwan.kim@165.213.180.234:/git/slp/pkgs/elementary

Conflicts:
debian/changelog
src/lib/Elementary.h.in

133 files changed:
TC/_export_env.sh [new file with mode: 0755]
TC/build.sh [new file with mode: 0755]
TC/elm_ts/button/Makefile [new file with mode: 0755]
TC/elm_ts/button/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/button/tslist [new file with mode: 0644]
TC/elm_ts/button/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/button/utc_UIFW_elm_button_add_func.c [new file with mode: 0644]
TC/elm_ts/colorpalette/Makefile [new file with mode: 0755]
TC/elm_ts/colorpalette/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/colorpalette/tslist [new file with mode: 0644]
TC/elm_ts/colorpalette/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_add_func.c [new file with mode: 0644]
TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_color_set_func.c [new file with mode: 0644]
TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_row_column_set_func.c [new file with mode: 0644]
TC/elm_ts/colorpicker/Makefile [new file with mode: 0755]
TC/elm_ts/colorpicker/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/colorpicker/tslist [new file with mode: 0644]
TC/elm_ts/colorpicker/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_add_func.c [new file with mode: 0644]
TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_get_func.c [new file with mode: 0644]
TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_set_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/Makefile [new file with mode: 0755]
TC/elm_ts/gengrid/tslist [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c [new file with mode: 0644]
TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c [new file with mode: 0644]
TC/elm_ts/imageslider/Makefile [new file with mode: 0755]
TC/elm_ts/imageslider/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/imageslider/tslist [new file with mode: 0755]
TC/elm_ts/imageslider/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_append_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_del_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_next_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_prev_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_get_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_set_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_next_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_photo_file_get_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_prev_func.c [new file with mode: 0755]
TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_selected_item_get_func.c [new file with mode: 0755]
TC/elm_ts/label/Makefile [new file with mode: 0755]
TC/elm_ts/label/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/label/tslist [new file with mode: 0755]
TC/elm_ts/label/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/label/utc_UIFW_elm_label_add_func.c [new file with mode: 0755]
TC/elm_ts/label/utc_UIFW_elm_label_label_get_func.c [new file with mode: 0755]
TC/elm_ts/label/utc_UIFW_elm_label_line_wrap_get_func.c [new file with mode: 0755]
TC/elm_ts/label/utc_UIFW_elm_label_wrap_height_get_func.c [new file with mode: 0755]
TC/elm_ts/label/utc_UIFW_elm_label_wrap_width_get_func.c [new file with mode: 0755]
TC/elm_ts/pagecontrol/Makefile [new file with mode: 0755]
TC/elm_ts/pagecontrol/tslist [new file with mode: 0644]
TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c [new file with mode: 0644]
TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c [new file with mode: 0644]
TC/elm_ts/popup/Makefile [new file with mode: 0755]
TC/elm_ts/popup/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/popup/tslist [new file with mode: 0644]
TC/elm_ts/popup/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/popup/utc_UIFW_elm_popup_add_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_buttons_add_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_content_get_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_content_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_desc_get_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_desc_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_mode_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_orient_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_response_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_rotation_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_run_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_timeout_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_get_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_get_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_set_func.c [new file with mode: 0644]
TC/elm_ts/popup/utc_UIFW_elm_popup_with_buttons_add_func.c [new file with mode: 0644]
TC/elm_ts/searchbar/Makefile [new file with mode: 0755]
TC/elm_ts/searchbar/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/searchbar/tslist [new file with mode: 0755]
TC/elm_ts/searchbar/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_add_func.c [new file with mode: 0755]
TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_entry_get_func.c [new file with mode: 0755]
TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_text_get_func.c [new file with mode: 0755]
TC/elm_ts/selectioninfo/Makefile [new file with mode: 0755]
TC/elm_ts/selectioninfo/tslist [new file with mode: 0644]
TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c [new file with mode: 0644]
TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c [new file with mode: 0644]
TC/elm_ts/template/Makefile [new file with mode: 0755]
TC/elm_ts/template/tc_gen.sh [new file with mode: 0755]
TC/elm_ts/template/tslist [new file with mode: 0644]
TC/elm_ts/template/utc_MODULE_API_func.c.in [new file with mode: 0755]
TC/elm_ts/template/utc_UIFW_elm_imageslider_add_func.c [new file with mode: 0644]
TC/elm_ts/template/utc_UIFW_elm_imageslider_append_func.c [new file with mode: 0644]
TC/elm_ts/template/uts_elm_imageslider_add_func.c [new file with mode: 0755]
TC/elm_ts/template/uts_elm_imageslider_add_func.h [new file with mode: 0755]
TC/execute.sh [new file with mode: 0755]
TC/tet_code [new file with mode: 0755]
TC/tet_scen_arm [new file with mode: 0755]
TC/tet_scen_i686 [new file with mode: 0755]
TC/tetbuild.cfg [new file with mode: 0755]
TC/tetclean.cfg [new file with mode: 0755]
TC/tetexec.cfg [new file with mode: 0755]
debian/changelog
src/lib/Elementary.h.in
src/lib/elc_scrolled_entry.c
src/lib/elm_actionslider.c
src/lib/elm_ctxpopup.c
src/lib/elm_datefield.c
src/lib/elm_dayselector.c
src/lib/elm_entry.c
src/lib/elm_gengrid.c
src/lib/elm_genlist.c
src/lib/elm_multibuttonentry.c
src/lib/elm_navigationbar.c
src/lib/elm_pager.c
src/lib/elm_segment_control.c
src/lib/elm_slidingdrawer.c
src/lib/elm_stackedicon.c
src/lib/elm_webview.c
src/lib/els_webview.c
src/lib/els_webview.h

diff --git a/TC/_export_env.sh b/TC/_export_env.sh
new file mode 100755 (executable)
index 0000000..b354434
--- /dev/null
@@ -0,0 +1,30 @@
+# Customize below path information 
+TET_INSTALL_PATH=/scratchbox/TETware
+
+TET_SIMUL_PATH=$TET_INSTALL_PATH/tetware-simulator
+TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
+TET_MOUNTED_PATH=/mnt/nfs/TETware/tetware-target
+
+MACHINE=`echo $SBOX_UNAME_MACHINE`
+
+if [ $MACHINE = "i686" ]               # Scratchbox i686
+then                   
+       export ARCH=simulator
+       export TET_ROOT=$TET_SIMUL_PATH
+elif [ $MACHINE = "arm" ]      # Scratchbox ARM
+then
+       export ARCH=target
+       export TET_ROOT=$TET_TARGET_PATH
+else
+       export ARCH=target
+       export TET_ROOT=$TET_MOUNTED_PATH
+fi
+
+export PATH=$TET_ROOT/bin:$PATH
+export LD_LIBRARY_PATH=$TET_ROOT/lib/tet3:$LD_LIBRARY_PATH
+
+set $(pwd)
+export TET_SUITE_ROOT=$1
+
+set $(date +%y%m%d_%H%M%S)
+FILE_NAME_EXTENSION=$1
diff --git a/TC/build.sh b/TC/build.sh
new file mode 100755 (executable)
index 0000000..d32a327
--- /dev/null
@@ -0,0 +1,89 @@
+export MACHINE=`echo $SBOX_UNAME_MACHINE`
+echo $MACHINE
+if [ $MACHINE = "i686" ]
+then
+       TET_SCEN_FILE=tet_scen_i686
+else
+       TET_SCEN_FILE=tet_scen_arm
+fi
+
+TET_SCEN_NAME=all
+RESULT_TO_JOURNAL="false"
+
+if [ $# -eq 0 ]
+then
+    echo 
+    echo "ERROR : Scenario name not found"
+    echo 
+    echo "SYNOPSIS :"
+    echo "./build-tar-host.sh [-j] [-s scenario file name] [scenario name]"
+    echo " -j : Write the journal file for test result"
+    echo " scenario name : A scenario name in 'tet_scen'file"
+    echo 
+    exit 0
+fi
+
+SCEN_FILE_INPUT="false"
+args_count=0
+
+for i in $* 
+do
+       args_count=`expr $args_count + 1`
+       if [ $SCEN_FILE_INPUT = "true" ]
+       then
+               TET_SCEN_FILE=$i
+               SCEN_FILE_INPUT="false"
+       elif [ $i = "-j" ]
+       then
+               RESULT_TO_JOURNAL="true"
+       elif [ $i = "-s" ]
+       then
+               SCEN_FILE_INPUT="true"
+       elif [ $args_count = $# ]
+       then
+               TET_SCEN_NAME=$i
+       fi
+done
+
+#Export the path information
+. ./_export_env.sh
+
+echo TET_ROOT=$TET_ROOT
+echo TET_SUITE_ROOT=$TET_SUITE_ROOT
+echo TET_SCEN_FILE=$TET_SCEN_FILE
+echo TET_SCEN_NAME=$TET_SCEN_NAME
+echo RESULT_TO_JOURNAL=$RESULT_TO_JOURNAL
+
+RESULT_DIR=result
+
+if [ $MACHINE = "i686" ]
+then
+       TEXT_RESULT=$RESULT_DIR/BLD-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
+       JOURNAL_RESULT=$RESULT_DIR/BLD-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
+else
+       TEXT_RESULT=$RESULT_DIR/BLD-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
+       JOURNAL_RESULT=$RESULT_DIR/BLD-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
+fi             
+
+### Make Result output directory
+echo
+echo "$RESULT_DIR Folder Create"
+if [ -e $RESULT_DIR ]
+then
+       echo "  -> $RESULT_DIR Folder exist"
+else
+       mkdir $RESULT_DIR
+fi
+
+##execute and mkae html report
+tcc -c -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
+if [ $RESULT_TO_JOURNAL = "false" ]
+then
+       tcc -b -p -j - -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
+else
+       tcc -b -j $JOURNAL_RESULT -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
+       grw -c 3 -f chtml -o $TEXT_RESULT -- $JOURNAL_RESULT
+       echo RESULT_SUMMARY = $TEXT_RESULT
+       echo RESULT_JOURNAL  = $JOURNAL_RESULT
+fi
+       rm -rf ./results
diff --git a/TC/elm_ts/button/Makefile b/TC/elm_ts/button/Makefile
new file mode 100755 (executable)
index 0000000..b98f48d
--- /dev/null
@@ -0,0 +1,24 @@
+CC ?= gcc
+
+TARGETS = uts_elm_button_add_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/button/tc_gen.sh b/TC/elm_ts/button/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/button/tslist b/TC/elm_ts/button/tslist
new file mode 100644 (file)
index 0000000..1b7bd27
--- /dev/null
@@ -0,0 +1,2 @@
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
+/elm_ts/button/utc_UIFW_elm_button_add_func
diff --git a/TC/elm_ts/button/utc_MODULE_API_func.c.in b/TC/elm_ts/button/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..710e5a1
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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 },
+};
+
+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/button/utc_UIFW_elm_button_add_func.c b/TC/elm_ts/button/utc_UIFW_elm_button_add_func.c
new file mode 100644 (file)
index 0000000..407f835
--- /dev/null
@@ -0,0 +1,105 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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_button_add_func_01(void);
+static void utc_UIFW_elm_button_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_button_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_button_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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_button_add()
+ */
+static void utc_UIFW_elm_button_add_func_01(void)
+{
+       Evas_Object *button = NULL;
+
+       button = elm_button_add(main_win);
+       if (!button) {
+               tet_infoline("elm_button_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       evas_object_del(button);
+       button = NULL;
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_button_add()
+ */
+static void utc_UIFW_elm_button_add_func_02(void)
+{
+       Evas_Object *button = NULL;
+
+
+       button = elm_button_add(NULL);
+
+       if (button) {
+               tet_infoline("elm_button_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               evas_object_del(button);
+               button = NULL;
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpalette/Makefile b/TC/elm_ts/colorpalette/Makefile
new file mode 100755 (executable)
index 0000000..85d0923
--- /dev/null
@@ -0,0 +1,24 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_colorpalette_add_func \
+         utc_UIFW_elm_colorpalette_color_set_func \
+         utc_UIFW_elm_colorpalette_row_column_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)
diff --git a/TC/elm_ts/colorpalette/tc_gen.sh b/TC/elm_ts/colorpalette/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/colorpalette/tslist b/TC/elm_ts/colorpalette/tslist
new file mode 100644 (file)
index 0000000..92ea4cf
--- /dev/null
@@ -0,0 +1,3 @@
+/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_add_func
+/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_color_set_func
+/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_row_column_set_func
diff --git a/TC/elm_ts/colorpalette/utc_MODULE_API_func.c.in b/TC/elm_ts/colorpalette/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..710e5a1
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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 },
+};
+
+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/colorpalette/utc_UIFW_elm_colorpalette_add_func.c b/TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_add_func.c
new file mode 100644 (file)
index 0000000..232802e
--- /dev/null
@@ -0,0 +1,107 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// 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_colorpalette_add_func_01(void);
+static void utc_UIFW_elm_colorpalette_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpalette_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpalette_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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_colorpalette_add()
+ */
+static void utc_UIFW_elm_colorpalette_add_func_01(void)
+{
+       Evas_Object *colorpalette = NULL;
+
+       colorpalette = elm_colorpalette_add(main_win);
+
+       if (!colorpalette) {
+               tet_infoline("elm_colorpalette_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       evas_object_del(colorpalette);
+       colorpalette = NULL;
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpalette_add()
+ */
+static void utc_UIFW_elm_colorpalette_add_func_02(void)
+{
+       Evas_Object *colorpalette = NULL;
+
+
+       colorpalette = elm_colorpalette_add(NULL);
+
+       if (colorpalette) {
+               tet_infoline("elm_colorpalette_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               evas_object_del(colorpalette);
+               colorpalette = NULL;
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_color_set_func.c b/TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_color_set_func.c
new file mode 100644 (file)
index 0000000..a68ef3a
--- /dev/null
@@ -0,0 +1,138 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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;
+Evas_Object *colorpalette;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_colorpalette_color_set_func_01(void);
+static void utc_UIFW_elm_colorpalette_color_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpalette_color_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpalette_color_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       colorpalette = elm_colorpalette_add(main_win);
+       evas_object_show(colorpalette);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       else if ( NULL != colorpalette ) {
+               evas_object_del(colorpalette);
+               colorpalette = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_colorpalette_color_set()
+ */
+static void utc_UIFW_elm_colorpalette_color_set_func_01(void)
+{
+       Elm_Colorpalette_Color color_set[5];
+       
+       color_set[ 0 ].r = 255;
+       color_set[ 0 ].g = 90;
+       color_set[ 0 ].b = 18;
+
+       color_set[ 1 ].r = 255;
+       color_set[ 1 ].g = 213;
+       color_set[ 1 ].b = 0;
+
+       color_set[ 2 ].r = 146;
+       color_set[ 2 ].g = 255;
+       color_set[ 2 ].b = 11;
+
+       color_set[ 3 ].r = 9;
+       color_set[ 3 ].g = 186;
+       color_set[ 3 ].b = 10;
+
+       color_set[ 4 ].r = 86;
+       color_set[ 4 ].g = 201;
+       color_set[ 4 ].b = 242;
+
+       elm_colorpalette_color_set(colorpalette, 5, color_set);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpalette_color_set()
+ */
+static void utc_UIFW_elm_colorpalette_color_set_func_02(void)
+{
+       Elm_Colorpalette_Color color_set[5];
+       
+       color_set[ 0 ].r = 255;
+       color_set[ 0 ].g = 90;
+       color_set[ 0 ].b = 18;
+
+       color_set[ 1 ].r = 255;
+       color_set[ 1 ].g = 213;
+       color_set[ 1 ].b = 0;
+
+       color_set[ 2 ].r = 146;
+       color_set[ 2 ].g = 255;
+       color_set[ 2 ].b = 11;
+
+       color_set[ 3 ].r = 9;
+       color_set[ 3 ].g = 186;
+       color_set[ 3 ].b = 10;
+
+       color_set[ 4 ].r = 86;
+       color_set[ 4 ].g = 201;
+       color_set[ 4 ].b = 242;
+
+       elm_colorpalette_color_set(NULL, 5, color_set);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_row_column_set_func.c b/TC/elm_ts/colorpalette/utc_UIFW_elm_colorpalette_row_column_set_func.c
new file mode 100644 (file)
index 0000000..a49c88a
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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;
+Evas_Object *colorpalette;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_colorpalette_row_column_set_func_01(void);
+static void utc_UIFW_elm_colorpalette_row_column_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpalette_row_column_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpalette_row_column_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       colorpalette = elm_colorpalette_add(main_win);
+       evas_object_show(colorpalette);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       else if ( NULL != colorpalette ) {
+               evas_object_del(colorpalette);
+               colorpalette = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_colorpalette_row_column_set()
+ */
+static void utc_UIFW_elm_colorpalette_row_column_set_func_01(void)
+{
+       elm_colorpalette_row_column_set(colorpalette, 2, 5);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpalette_row_column_set()
+ */
+static void utc_UIFW_elm_colorpalette_row_column_set_func_02(void)
+{
+       elm_colorpalette_row_column_set(NULL, 2, 5);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpicker/Makefile b/TC/elm_ts/colorpicker/Makefile
new file mode 100755 (executable)
index 0000000..cd91d5f
--- /dev/null
@@ -0,0 +1,26 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_colorpicker_add_func \
+         utc_UIFW_elm_colorpicker_color_set_func \
+         utc_UIFW_elm_colorpicker_color_get_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/colorpicker/tc_gen.sh b/TC/elm_ts/colorpicker/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/colorpicker/tslist b/TC/elm_ts/colorpicker/tslist
new file mode 100644 (file)
index 0000000..bf6c825
--- /dev/null
@@ -0,0 +1,3 @@
+/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_add_func
+/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_set_func
+/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_get_func
diff --git a/TC/elm_ts/colorpicker/utc_MODULE_API_func.c.in b/TC/elm_ts/colorpicker/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..710e5a1
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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 },
+};
+
+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/colorpicker/utc_UIFW_elm_colorpicker_add_func.c b/TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_add_func.c
new file mode 100644 (file)
index 0000000..3c42b49
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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_colorpicker_add_func_01(void);
+static void utc_UIFW_elm_colorpicker_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpicker_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpicker_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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_colorpicker_add()
+ */
+static void utc_UIFW_elm_colorpicker_add_func_01(void)
+{
+       Evas_Object *colorpicker;
+       colorpicker = elm_colorpicker_add(main_win);
+
+       if (!colorpicker) {
+               tet_infoline("elm_colorpicker_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       evas_object_del(colorpicker);
+       colorpicker = NULL;
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpicker_add()
+ */
+static void utc_UIFW_elm_colorpicker_add_func_02(void)
+{
+       Evas_Object *colorpicker;
+       colorpicker = elm_colorpicker_add(NULL);
+
+       if (colorpicker) {
+               tet_infoline("elm_colorpicker_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               evas_object_del(colorpicker);
+               colorpicker = NULL;
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_get_func.c b/TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_get_func.c
new file mode 100644 (file)
index 0000000..971d655
--- /dev/null
@@ -0,0 +1,94 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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;
+Evas_Object *colorpicker;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_colorpicker_color_get_func_01(void);
+static void utc_UIFW_elm_colorpicker_color_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpicker_color_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpicker_color_get_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       colorpicker = elm_colorpicker_add(main_win);
+       evas_object_show(colorpicker);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != colorpicker ) {
+               evas_object_del(colorpicker);
+               colorpicker = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_colorpicker_color_get()
+ */
+static void utc_UIFW_elm_colorpicker_color_get_func_01(void)
+{
+       int r, g, b;
+       elm_colorpicker_color_get(colorpicker, &r, &g, &b);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpicker_color_get()
+ */
+static void utc_UIFW_elm_colorpicker_color_get_func_02(void)
+{
+       int r, g, b;
+       elm_colorpicker_color_get(NULL, &r, &g, &b);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_set_func.c b/TC/elm_ts/colorpicker/utc_UIFW_elm_colorpicker_color_set_func.c
new file mode 100644 (file)
index 0000000..5da6903
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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;
+Evas_Object *colorpicker;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_colorpicker_color_set_func_01(void);
+static void utc_UIFW_elm_colorpicker_color_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_colorpicker_color_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_colorpicker_color_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       colorpicker = elm_colorpicker_add(main_win);
+       evas_object_show(colorpicker);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != colorpicker ) {
+               evas_object_del(colorpicker);
+               colorpicker = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_colorpicker_color_set()
+ */
+static void utc_UIFW_elm_colorpicker_color_set_func_01(void)
+{
+       elm_colorpicker_color_set(colorpicker, 255, 255, 255);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_colorpicker_color_set()
+ */
+static void utc_UIFW_elm_colorpicker_color_set_func_02(void)
+{
+       elm_colorpicker_color_set(NULL, 255, 255, 255);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/gengrid/Makefile b/TC/elm_ts/gengrid/Makefile
new file mode 100755 (executable)
index 0000000..53feb79
--- /dev/null
@@ -0,0 +1,36 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_gengrid_add_func \
+         utc_UIFW_elm_gengrid_item_size_get_func \
+         utc_UIFW_elm_gengrid_align_get_func \
+         utc_UIFW_elm_gengrid_item_append_func \
+         utc_UIFW_elm_gengrid_item_object_get_func \
+         utc_UIFW_elm_gengrid_item_data_get_func \
+         utc_UIFW_elm_gengrid_item_pos_get_func \
+         utc_UIFW_elm_gengrid_multi_select_get_func \
+         utc_UIFW_elm_gengrid_selected_item_get_func \
+         utc_UIFW_elm_gengrid_selected_items_get_func \
+         utc_UIFW_elm_gengrid_item_selected_get_func \
+         utc_UIFW_elm_gengrid_item_disabled_get_func \
+         utc_UIFW_elm_gengrid_always_select_mode_get_func \
+         utc_UIFW_elm_gengrid_no_select_mode_get_func \
+         utc_UIFW_elm_gengrid_bounce_get_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)
diff --git a/TC/elm_ts/gengrid/tslist b/TC/elm_ts/gengrid/tslist
new file mode 100644 (file)
index 0000000..a06a6dd
--- /dev/null
@@ -0,0 +1,15 @@
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func
+/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_add_func.c
new file mode 100644 (file)
index 0000000..5d5eb25
--- /dev/null
@@ -0,0 +1,140 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_add_func_01(void);
+static void utc_UIFW_elm_gengrid_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Selection Info", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Selection Info");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_gengrid_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_add");
+}
+
+static void utc_UIFW_elm_gengrid_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_gengrid_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_add");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_align_get_func.c
new file mode 100644 (file)
index 0000000..cc3adb1
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_align_get_func_01(void);
+static void utc_UIFW_elm_gengrid_align_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_align_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_align_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_align_set(test_eo, 0.5, 0.5);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_align_get_func_01(void)
+{
+       double x, y;
+       x = -1; y = -1;
+       elm_gengrid_align_get(test_eo, &x, &y);
+       TET_CHECK_PASS(-1, x);
+       TET_CHECK_PASS(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_align_get");
+}
+
+static void utc_UIFW_elm_gengrid_align_get_func_02(void)
+{
+       double x, y;
+       x = -1; y = -1;
+       elm_gengrid_align_get(NULL, &x, &y);
+       TET_CHECK_FAIL(-1, x);
+       TET_CHECK_FAIL(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_align_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_always_select_mode_get_func.c
new file mode 100644 (file)
index 0000000..6975a73
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_always_select_mode_get_func_01(void);
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_always_select_mode_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_always_select_mode_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_always_select_mode_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_always_select_mode_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_always_select_mode_get");
+}
+
+static void utc_UIFW_elm_gengrid_always_select_mode_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_always_select_mode_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_always_select_mode_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_bounce_get_func.c
new file mode 100644 (file)
index 0000000..89b682c
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_bounce_get_func_01(void);
+static void utc_UIFW_elm_gengrid_bounce_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_bounce_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_bounce_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_bounce_set(test_eo, EINA_TRUE, EINA_TRUE);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_bounce_get_func_01(void)
+{
+       Eina_Bool h, v;
+       h = EINA_FALSE; v = EINA_FALSE;
+       elm_gengrid_bounce_get(test_eo, &h, &v);
+       TET_CHECK_PASS(EINA_FALSE, h);
+       TET_CHECK_PASS(EINA_FALSE, v);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_bounce_get");
+}
+
+static void utc_UIFW_elm_gengrid_bounce_get_func_02(void)
+{
+       Eina_Bool h, v;
+       h = EINA_FALSE; v = EINA_FALSE;
+       elm_gengrid_bounce_get(NULL, &h, &v);
+       TET_CHECK_FAIL(EINA_FALSE, h);
+       TET_CHECK_FAIL(EINA_FALSE, v);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_bounce_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_append_func.c
new file mode 100644 (file)
index 0000000..877dc7e
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_append_func_01(void);
+static void utc_UIFW_elm_gengrid_item_append_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_append_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_append_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_append_func_01(void)
+{
+       Elm_Gengrid_Item *item = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+       TET_CHECK_PASS(NULL, item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_append");
+}
+
+static void utc_UIFW_elm_gengrid_item_append_func_02(void)
+{
+       Elm_Gengrid_Item *item = NULL;
+
+       item = elm_gengrid_item_append(NULL, NULL, NULL, NULL, NULL);
+       TET_CHECK_FAIL(NULL, item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_append");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_data_get_func.c
new file mode 100644 (file)
index 0000000..2dda48a
--- /dev/null
@@ -0,0 +1,151 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_data_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_data_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_data_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_data_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_data_get_func_01(void)
+{
+       void *data = NULL;
+       
+       data = elm_gengrid_item_data_get(item);
+       
+       TET_CHECK_PASS(NULL, data);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_data_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_data_get_func_02(void)
+{
+       void *data = NULL;
+
+       data = elm_gengrid_item_data_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, data);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_data_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_disabled_get_func.c
new file mode 100644 (file)
index 0000000..490403a
--- /dev/null
@@ -0,0 +1,153 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_disabled_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_disabled_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_disabled_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       gic.item_style = "default_grid";
+        gic.func.label_get = NULL;
+        gic.func.icon_get = NULL;
+
+        item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+        elm_gengrid_item_disabled_set(item, EINA_TRUE);        
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_item_disabled_get(item);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_disabled_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_disabled_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_item_disabled_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_disabled_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_object_get_func.c
new file mode 100644 (file)
index 0000000..ea23ac0
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_object_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_object_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_object_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_object_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       
+       gic.item_style = "default_gridtext";
+       gic.func.label_get = grid_label_get;
+       gic.func.icon_get = grid_icon_get;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_object_get_func_01(void)
+{
+       const Evas_Object *obj = NULL;
+       
+       obj = elm_gengrid_item_object_get(item);
+       
+       TET_CHECK_FAIL(NULL, obj);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_object_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_object_get_func_02(void)
+{
+       const Evas_Object *obj = NULL;
+       
+       obj = elm_gengrid_item_object_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, obj);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_object_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_pos_get_func.c
new file mode 100644 (file)
index 0000000..2619660
--- /dev/null
@@ -0,0 +1,155 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_pos_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_pos_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_pos_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_pos_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_pos_get_func_01(void)
+{
+       unsigned int x, y;
+       x = -1; y = -1;
+       
+       elm_gengrid_item_pos_get(item, &x, &y);
+       
+       TET_CHECK_PASS(-1, x);
+       TET_CHECK_PASS(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_pos_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_pos_get_func_02(void)
+{
+       unsigned int x, y;
+       x = -1; y = -1;
+       
+       elm_gengrid_item_pos_get(NULL, &x, &y);
+       
+       TET_CHECK_FAIL(-1, x);
+       TET_CHECK_FAIL(-1, y);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_pos_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_selected_get_func.c
new file mode 100644 (file)
index 0000000..d30e0de
--- /dev/null
@@ -0,0 +1,153 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_selected_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_selected_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_selected_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_selected_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       gic.item_style = "default_grid";
+        gic.func.label_get = NULL;
+        gic.func.icon_get = NULL;
+
+        item = elm_gengrid_item_append(test_eo, &gic, NULL, NULL, NULL);
+        elm_gengrid_item_selected_set(item, EINA_TRUE);        
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_selected_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_item_selected_get(item);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_selected_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_selected_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_item_selected_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_selected_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_item_size_get_func.c
new file mode 100644 (file)
index 0000000..899a204
--- /dev/null
@@ -0,0 +1,145 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_item_size_get_func_01(void);
+static void utc_UIFW_elm_gengrid_item_size_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_item_size_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_item_size_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       elm_gengrid_item_size_set(test_eo, 120, 120);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_item_size_get_func_01(void)
+{
+       Evas_Coord w, h;
+       w = -1; h = -1;
+       elm_gengrid_item_size_get(test_eo, &w, &h);
+       TET_CHECK_PASS(-1, w);
+       TET_CHECK_PASS(-1, h);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_item_size_get");
+}
+
+static void utc_UIFW_elm_gengrid_item_size_get_func_02(void)
+{
+       Evas_Coord w, h;
+       w = -1; h = -1;
+       elm_gengrid_item_size_get(NULL, NULL, NULL);
+       TET_CHECK_FAIL(-1, w);
+       TET_CHECK_FAIL(-1, h);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_item_size_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_multi_select_get_func.c
new file mode 100644 (file)
index 0000000..14b2a46
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_multi_select_get_func_01(void);
+static void utc_UIFW_elm_gengrid_multi_select_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_multi_select_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_multi_select_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_multi_select_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_multi_select_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_multi_select_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_multi_select_get");
+}
+
+static void utc_UIFW_elm_gengrid_multi_select_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_multi_select_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_multi_select_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_no_select_mode_get_func.c
new file mode 100644 (file)
index 0000000..d37d120
--- /dev/null
@@ -0,0 +1,146 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_no_select_mode_get_func_01(void);
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_no_select_mode_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_no_select_mode_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+
+       elm_gengrid_no_select_mode_set(test_eo, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_01(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+       
+       flag = elm_gengrid_no_select_mode_get(test_eo);
+       
+       TET_CHECK_PASS(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_no_select_mode_get");
+}
+
+static void utc_UIFW_elm_gengrid_no_select_mode_get_func_02(void)
+{
+       Eina_Bool flag = EINA_FALSE;
+
+       flag = elm_gengrid_no_select_mode_get(NULL);
+       
+       TET_CHECK_FAIL(EINA_FALSE, flag);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_no_select_mode_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_item_get_func.c
new file mode 100644 (file)
index 0000000..e0eff09
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_selected_item_get_func_01(void);
+static void utc_UIFW_elm_gengrid_selected_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_selected_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_selected_item_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+       elm_gengrid_item_selected_set(item, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_selected_item_get_func_01(void)
+{
+       Elm_Gengrid_Item *temp_item = NULL;
+       
+       temp_item = elm_gengrid_selected_item_get(test_eo);
+       
+       TET_CHECK_PASS(NULL, temp_item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_selected_item_get");
+}
+
+static void utc_UIFW_elm_gengrid_selected_item_get_func_02(void)
+{
+       Elm_Gengrid_Item *temp_item = NULL;
+
+       temp_item = elm_gengrid_selected_item_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, temp_item);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_selected_item_get");
+}
diff --git a/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c b/TC/elm_ts/gengrid/utc_UIFW_elm_gengrid_selected_items_get_func.c
new file mode 100644 (file)
index 0000000..a44f0d6
--- /dev/null
@@ -0,0 +1,152 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Elm_Gengrid_Item_Class gic;
+Elm_Gengrid_Item *item;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_gengrid_selected_items_get_func_01(void);
+static void utc_UIFW_elm_gengrid_selected_items_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_gengrid_selected_items_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_gengrid_selected_items_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_gengrid_add(test_win);
+       gic.item_style = "default_grid";
+       gic.func.label_get = NULL;
+       gic.func.icon_get = NULL;
+       
+       item = elm_gengrid_item_append(test_eo, &gic, test_bg, NULL, NULL);
+       elm_gengrid_item_selected_set(item, EINA_TRUE);
+               
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_gengrid_selected_items_get_func_01(void)
+{
+       const Eina_List *list = NULL;
+       
+       list = elm_gengrid_selected_items_get(test_eo);
+       
+       TET_CHECK_PASS(NULL, list);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_gengrid_selected_items_get");
+}
+
+static void utc_UIFW_elm_gengrid_selected_items_get_func_02(void)
+{
+       const Eina_List *list = NULL;
+
+       list = elm_gengrid_selected_items_get(NULL);
+       
+       TET_CHECK_FAIL(NULL, list);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_gengrid_selected_items_get");
+}
diff --git a/TC/elm_ts/imageslider/Makefile b/TC/elm_ts/imageslider/Makefile
new file mode 100755 (executable)
index 0000000..994b984
--- /dev/null
@@ -0,0 +1,34 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_imageslider_add_func \
+         utc_UIFW_elm_imageslider_item_append_func \
+         utc_UIFW_elm_imageslider_item_prepend_func \
+         utc_UIFW_elm_imageslider_item_del_func \
+         utc_UIFW_elm_imageslider_selected_item_get_func \
+         utc_UIFW_elm_imageslider_item_selected_get_func \
+         utc_UIFW_elm_imageslider_item_selected_set_func \
+         utc_UIFW_elm_imageslider_photo_file_get_func \
+         utc_UIFW_elm_imageslider_item_prev_func \
+         utc_UIFW_elm_imageslider_item_next_func \
+         utc_UIFW_elm_imageslider_prev_func \
+         utc_UIFW_elm_imageslider_next_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 *~ *.o tet_captured tet_lock $(TARGETS)
diff --git a/TC/elm_ts/imageslider/tc_gen.sh b/TC/elm_ts/imageslider/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/imageslider/tslist b/TC/elm_ts/imageslider/tslist
new file mode 100755 (executable)
index 0000000..0f4c68e
--- /dev/null
@@ -0,0 +1,12 @@
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_append_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_prepend_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_del_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_selected_item_get_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_get_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_set_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_photo_file_get_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_prev_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_next_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_prev_func
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_next_func
diff --git a/TC/elm_ts/imageslider/utc_MODULE_API_func.c.in b/TC/elm_ts/imageslider/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..da52d9f
--- /dev/null
@@ -0,0 +1,90 @@
+#include <tet_api.h>
+
+
+// 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; \
+               } \
+}
+
+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 },
+};
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @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/imageslider/utc_UIFW_elm_imageslider_add_func b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
new file mode 100755 (executable)
index 0000000..8092919
Binary files /dev/null and b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func differ
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func.c
new file mode 100755 (executable)
index 0000000..07d4006
--- /dev/null
@@ -0,0 +1,171 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_add_func_01(void);
+static void utc_UIFW_elm_imageslider_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_add_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_add()
+ */
+static void utc_UIFW_elm_imageslider_add_func_01(void)
+{
+       test_eo = elm_imageslider_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Image Slider is added successfully.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_add()
+ */
+static void utc_UIFW_elm_imageslider_add_func_02(void)
+{
+       test_eo = elm_imageslider_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Image Slider has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_append_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_append_func.c
new file mode 100755 (executable)
index 0000000..eac1291
--- /dev/null
@@ -0,0 +1,223 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Elm_Imageslider_Item *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...) \
+{ \
+       Elm_Imageslider_Item *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_append_func_01(void);
+static void utc_UIFW_elm_imageslider_item_append_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_append_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_append_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_item_append()
+ */
+static void utc_UIFW_elm_imageslider_item_append_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       tet_infoline("[[ DEBUG :: Positive ]]");
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       TET_CHECK_PASS(NULL, it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Image Slider item appended successfully.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_append()
+ */
+static void utc_UIFW_elm_imageslider_item_append_func_02(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       tet_infoline("[[ DEBUG:: Negative ]]");
+
+       it = elm_imageslider_item_append(NULL, imageslider_photos_path[1], _test_cb, NULL);
+       TET_CHECK_FAIL(NULL, it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Appending an Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_del_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_del_func.c
new file mode 100755 (executable)
index 0000000..e126ad6
--- /dev/null
@@ -0,0 +1,217 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_del_func_01(void);
+static void utc_UIFW_elm_imageslider_item_del_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_del_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_del_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_item_del()
+ */
+static void utc_UIFW_elm_imageslider_item_del_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_item_del(it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, The selected Image Slider item deleted successfully.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_del()
+ */
+static void utc_UIFW_elm_imageslider_item_del_func_02(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_item_del(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Deleting the selected Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_next_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_next_func.c
new file mode 100755 (executable)
index 0000000..4b330e8
--- /dev/null
@@ -0,0 +1,226 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Elm_Imageslider_Item *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...) \
+{ \
+       Elm_Imageslider_Item *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_next_func_01(void);
+static void utc_UIFW_elm_imageslider_item_next_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_next_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_next_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_item_next()
+ */
+static void utc_UIFW_elm_imageslider_item_next_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+       Elm_Imageslider_Item *next_it = NULL;
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[2], _test_cb, NULL);
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[4], _test_cb, NULL);
+
+       next_it = elm_imageslider_item_next(it);
+       TET_CHECK_PASS(NULL, next_it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the next Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_next()
+ */
+static void utc_UIFW_elm_imageslider_item_next_func_02(void)
+{
+       Elm_Imageslider_Item *next_it = NULL;
+
+       next_it = elm_imageslider_item_next(NULL);
+       TET_CHECK_FAIL(NULL, next_it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the next Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_prev_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_prev_func.c
new file mode 100755 (executable)
index 0000000..c005da2
--- /dev/null
@@ -0,0 +1,225 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Elm_Imageslider_Item *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...) \
+{ \
+       Elm_Imageslider_Item *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_prev_func_01(void);
+static void utc_UIFW_elm_imageslider_item_prev_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_prev_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_prev_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+
+/**
+ * @brief Positive test case of elm_imageslider_item_prev()
+ */
+static void utc_UIFW_elm_imageslider_item_prev_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+       Elm_Imageslider_Item *prev_it = NULL;
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[2], _test_cb, NULL);
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+
+       prev_it = elm_imageslider_item_prev(it);
+       TET_CHECK_PASS(NULL, prev_it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the previous Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_prev()
+ */
+static void utc_UIFW_elm_imageslider_item_prev_func_02(void)
+{
+       Elm_Imageslider_Item *prev_it = NULL;
+
+       prev_it = elm_imageslider_item_prev(NULL);
+       TET_CHECK_FAIL(NULL, prev_it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the previous Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_get_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_get_func.c
new file mode 100755 (executable)
index 0000000..e64b024
--- /dev/null
@@ -0,0 +1,228 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Eina_Bool 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...) \
+{ \
+       Eina_Bool err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_selected_get_func_01(void);
+static void utc_UIFW_elm_imageslider_item_selected_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_selected_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_selected_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_item_selected_get()
+ */
+static void utc_UIFW_elm_imageslider_item_selected_get_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+       Eina_Bool rv = EINA_FALSE;
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_selected_set(it);
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_selected_set(it);
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[2], _test_cb, NULL);
+       elm_imageslider_item_selected_set(it);
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+       elm_imageslider_item_selected_set(it);
+
+       rv = elm_imageslider_item_selected_get(it);
+       TET_CHECK_PASS(EINA_TRUE, rv);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, The Image Slider item is selected.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_selected_get()
+ */
+static void utc_UIFW_elm_imageslider_item_selected_get_func_02(void)
+{
+       Eina_Bool rv = EINA_FALSE;
+
+       rv = elm_imageslider_item_selected_get(NULL);
+       TET_CHECK_FAIL(EINA_FALSE, rv);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, The Image Slider item is not selected.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_set_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_item_selected_set_func.c
new file mode 100755 (executable)
index 0000000..6a9a63c
--- /dev/null
@@ -0,0 +1,222 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_item_selected_set_func_01(void);
+static void utc_UIFW_elm_imageslider_item_selected_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_item_selected_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_item_selected_set_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_item_selected_set()
+ */
+static void utc_UIFW_elm_imageslider_item_selected_set_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[2], _test_cb, NULL);
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_item_selected_set(it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting the selected Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_item_selected_set()
+ */
+static void utc_UIFW_elm_imageslider_item_selected_set_func_02(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_item_selected_set(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting the selected Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_next_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_next_func.c
new file mode 100755 (executable)
index 0000000..01e9e0b
--- /dev/null
@@ -0,0 +1,189 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_next_func_01(void);
+static void utc_UIFW_elm_imageslider_next_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_next_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_next_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ============ TC COMPLETE  ============ ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_next()
+ */
+static void utc_UIFW_elm_imageslider_next_func_01(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_next(test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving to the next Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_next()
+ */
+static void utc_UIFW_elm_imageslider_next_func_02(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_next(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving to the next Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_photo_file_get_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_photo_file_get_func.c
new file mode 100755 (executable)
index 0000000..a75024b
--- /dev/null
@@ -0,0 +1,225 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       const char *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...) \
+{ \
+       const char *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_photo_file_get_func_01(void);
+static void utc_UIFW_elm_imageslider_photo_file_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_photo_file_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_photo_file_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+
+/**
+ * @brief Positive test case of elm_imageslider_photo_file_get()
+ */
+static void utc_UIFW_elm_imageslider_photo_file_get_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+       const char *path;
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[2], _test_cb, NULL);
+
+       it = elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+
+       path = elm_imageslider_item_photo_file_get(it);
+       TET_CHECK_PASS(NULL, path);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the photo file path of given Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_photo_file_get()
+ */
+static void utc_UIFW_elm_imageslider_photo_file_get_func_02(void)
+{
+       const char *path;
+
+       path = elm_imageslider_item_photo_file_get(NULL);
+       TET_CHECK_FAIL(NULL, path);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the photo file path of given Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_prev_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_prev_func.c
new file mode 100755 (executable)
index 0000000..e01e53b
--- /dev/null
@@ -0,0 +1,217 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_prev_func_01(void);
+static void utc_UIFW_elm_imageslider_prev_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_prev_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_prev_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+
+/*
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+*/
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+//static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+/*
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+*/
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_prev()
+ */
+static void utc_UIFW_elm_imageslider_prev_func_01(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_prev(test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Moving to the previous Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_prev()
+ */
+static void utc_UIFW_elm_imageslider_prev_func_02(void)
+{
+       // Current return type is "Void", but will change to Bool.
+       elm_imageslider_prev(NULL);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Moving to the previous Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_selected_item_get_func.c b/TC/elm_ts/imageslider/utc_UIFW_elm_imageslider_selected_item_get_func.c
new file mode 100755 (executable)
index 0000000..7fe029e
--- /dev/null
@@ -0,0 +1,221 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       Elm_Imageslider_Item *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...) \
+{ \
+       Elm_Imageslider_Item *err = y; \
+       if (err != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_selected_item_get_func_01(void);
+static void utc_UIFW_elm_imageslider_selected_item_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_selected_item_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_selected_item_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo;
+static char *imageslider_photos_path[] = {
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item1.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item2.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item3.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item4.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item5.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item6.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item7.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item8.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item9.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item10.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item11.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item12.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item13.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item14.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item15.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item16.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item17.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item18.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item19.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item20.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item21.jpg",
+       "/usr/share/beat_winset_test/icon/Albums_Item/Albums_Item22.jpg",
+};
+
+
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+static void _test_cb(void * data, Evas_Object * obj, void * event_info);
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Callback function
+static void _test_cb(void *data, Evas_Object *obj, void *event_info)
+{
+       Elm_Imageslider_Item *it = event_info;
+       Elm_Imageslider_Item *sel = elm_imageslider_selected_item_get(obj);
+
+       printf("[[[ DEBUG ]]]::==================================================\n");
+       printf("[[[ DEBUG ]]]::%p %p\n", it, sel);
+       printf("[[[ DEBUG ]]]::PHOTO FILE: %s\n", elm_imageslider_item_photo_file_get(it));
+       printf("[[[ DEBUG ]]]::--------------------------------------------------------\n");
+
+}
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       // Add an Image Slider Widget.
+       test_eo = elm_imageslider_add(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_selected_item_get()
+ */
+static void utc_UIFW_elm_imageslider_selected_item_get_func_01(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[0], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[1], _test_cb, NULL);
+       elm_imageslider_item_append(test_eo, imageslider_photos_path[3], _test_cb, NULL);
+
+       it = elm_imageslider_selected_item_get(test_eo);
+       TET_CHECK_PASS(NULL, it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting the selected Image Slider item has succeed.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_selected_item_get()
+ */
+static void utc_UIFW_elm_imageslider_selected_item_get_func_02(void)
+{
+       Elm_Imageslider_Item *it = NULL;
+
+       it = elm_imageslider_selected_item_get(NULL);
+       TET_CHECK_FAIL(NULL, it);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting the selected Image Slider item has failed.");
+}
diff --git a/TC/elm_ts/label/Makefile b/TC/elm_ts/label/Makefile
new file mode 100755 (executable)
index 0000000..cbe18d1
--- /dev/null
@@ -0,0 +1,26 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_label_add_func \
+         utc_UIFW_elm_label_label_get_func \
+         utc_UIFW_elm_label_line_wrap_get_func \
+         utc_UIFW_elm_label_wrap_height_get_func \
+         utc_UIFW_elm_label_wrap_width_get_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 *~ *.o tet_captured tet_lock $(TARGETS)
diff --git a/TC/elm_ts/label/tc_gen.sh b/TC/elm_ts/label/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/label/tslist b/TC/elm_ts/label/tslist
new file mode 100755 (executable)
index 0000000..abd7426
--- /dev/null
@@ -0,0 +1,5 @@
+/elm_ts/label/utc_UIFW_elm_label_add_func
+/elm_ts/label/utc_UIFW_elm_label_label_get_func
+/elm_ts/label/utc_UIFW_elm_label_line_wrap_get_func
+/elm_ts/label/utc_UIFW_elm_label_wrap_height_get_func
+/elm_ts/label/utc_UIFW_elm_label_wrap_width_get_func
diff --git a/TC/elm_ts/label/utc_MODULE_API_func.c.in b/TC/elm_ts/label/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..da52d9f
--- /dev/null
@@ -0,0 +1,90 @@
+#include <tet_api.h>
+
+
+// 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; \
+               } \
+}
+
+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 },
+};
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @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/label/utc_UIFW_elm_label_add_func.c b/TC/elm_ts/label/utc_UIFW_elm_label_add_func.c
new file mode 100755 (executable)
index 0000000..98d8756
--- /dev/null
@@ -0,0 +1,171 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_label_add_func_01(void);
+static void utc_UIFW_elm_label_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_label_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_label_add_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Label", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Label");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_label_add()
+ */
+static void utc_UIFW_elm_label_add_func_01(void)
+{
+       test_eo = elm_label_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Label is added successfully.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_label_add()
+ */
+static void utc_UIFW_elm_label_add_func_02(void)
+{
+       test_eo = elm_label_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Label has failed.");
+}
diff --git a/TC/elm_ts/label/utc_UIFW_elm_label_label_get_func.c b/TC/elm_ts/label/utc_UIFW_elm_label_label_get_func.c
new file mode 100755 (executable)
index 0000000..815016c
--- /dev/null
@@ -0,0 +1,177 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_label_label_get_func_01(void);
+static void utc_UIFW_elm_label_label_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_label_label_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_label_label_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Label", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Label");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_label_label_get()
+ */
+static void utc_UIFW_elm_label_label_get_func_01(void)
+{
+       test_eo = elm_label_add(test_win);
+       char *ret_str = NULL;
+       elm_label_label_set(test_eo, "test string");
+       ret_str = elm_label_label_get(test_eo);
+       TET_CHECK_PASS(NULL, ret_str);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Label label get is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_label_label_get()
+ */
+static void utc_UIFW_elm_label_label_get_func_02(void)
+{
+       test_eo = elm_label_add(test_win);
+       char *ret_str = NULL;
+       elm_label_label_set(test_eo, NULL);
+       ret_str = elm_label_label_get(test_eo);
+       TET_CHECK_FAIL(NULL, ret_str);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Label label get is failed.");
+}
diff --git a/TC/elm_ts/label/utc_UIFW_elm_label_line_wrap_get_func.c b/TC/elm_ts/label/utc_UIFW_elm_label_line_wrap_get_func.c
new file mode 100755 (executable)
index 0000000..0c8f2ff
--- /dev/null
@@ -0,0 +1,177 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_label_line_wrap_get_func_01(void);
+static void utc_UIFW_elm_label_line_wrap_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_label_line_wrap_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_label_line_wrap_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Label", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Label");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_label_line_wrap_get()
+ */
+static void utc_UIFW_elm_label_line_wrap_get_func_01(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_line_wrap_set(test_eo, 1);
+       int ret = 0;
+       ret = elm_label_line_wrap_get(test_eo);
+       TET_CHECK_PASS(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Label wrap get/set is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_label_line_wrap_get()
+ */
+static void utc_UIFW_elm_label_line_wrap_get_func_02(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_line_wrap_set(test_eo, 1);
+       int ret = 0;
+       ret = elm_label_line_wrap_get(test_eo);
+       TET_CHECK_FAIL(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Label wrap get/set is failed.");
+}
diff --git a/TC/elm_ts/label/utc_UIFW_elm_label_wrap_height_get_func.c b/TC/elm_ts/label/utc_UIFW_elm_label_wrap_height_get_func.c
new file mode 100755 (executable)
index 0000000..c476886
--- /dev/null
@@ -0,0 +1,177 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_label_wrap_height_get_func_01(void);
+static void utc_UIFW_elm_label_wrap_height_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_label_wrap_height_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_label_wrap_height_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Label", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Label");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_label_wrap_height_get()
+ */
+static void utc_UIFW_elm_label_wrap_height_get_func_01(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_wrap_height_set(test_eo, 10);
+       int ret = 0;
+       ret = elm_label_wrap_height_get(test_eo);
+       TET_CHECK_PASS(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Label height get/set is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_label_wrap_height_get()
+ */
+static void utc_UIFW_elm_label_wrap_height_get_func_02(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_wrap_height_set(test_eo, 0);
+       int ret = 0;
+       ret = elm_label_wrap_height_get(test_eo);
+       TET_CHECK_FAIL(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Label height get/set is failed.");
+}
diff --git a/TC/elm_ts/label/utc_UIFW_elm_label_wrap_width_get_func.c b/TC/elm_ts/label/utc_UIFW_elm_label_wrap_width_get_func.c
new file mode 100755 (executable)
index 0000000..019ea1f
--- /dev/null
@@ -0,0 +1,177 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_label_wrap_width_get_func_01(void);
+static void utc_UIFW_elm_label_wrap_width_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_label_wrap_width_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_label_wrap_width_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "Label", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Label");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_label_wrap_width_get()
+ */
+static void utc_UIFW_elm_label_wrap_width_get_func_01(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_wrap_width_set(test_eo, 10);
+       int ret = 0;
+       ret = elm_label_wrap_width_get(test_eo);
+       TET_CHECK_PASS(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Label wrap width get/set is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_label_wrap_width_get()
+ */
+static void utc_UIFW_elm_label_wrap_width_get_func_02(void)
+{
+       test_eo = elm_label_add(test_win);
+       elm_label_wrap_width_set(test_eo, 10);
+       int ret = 0;
+       ret = elm_label_wrap_width_get(test_eo);
+       TET_CHECK_FAIL(NULL, ret);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Label wrap get/set is failed.");
+}
diff --git a/TC/elm_ts/pagecontrol/Makefile b/TC/elm_ts/pagecontrol/Makefile
new file mode 100755 (executable)
index 0000000..8658b72
--- /dev/null
@@ -0,0 +1,23 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_page_control_add_func \
+         utc_UIFW_elm_page_control_page_id_get_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)
diff --git a/TC/elm_ts/pagecontrol/tslist b/TC/elm_ts/pagecontrol/tslist
new file mode 100644 (file)
index 0000000..468a597
--- /dev/null
@@ -0,0 +1,2 @@
+/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func
+/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func
diff --git a/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c b/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_add_func.c
new file mode 100644 (file)
index 0000000..46917a1
--- /dev/null
@@ -0,0 +1,140 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_page_control_add_func_01(void);
+static void utc_UIFW_elm_page_control_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_page_control_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_page_control_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_page_control_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_page_control_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_page_control_add");
+}
+
+static void utc_UIFW_elm_page_control_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_page_control_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_page_control_add");
+}
diff --git a/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c b/TC/elm_ts/pagecontrol/utc_UIFW_elm_page_control_page_id_get_func.c
new file mode 100644 (file)
index 0000000..9050ce3
--- /dev/null
@@ -0,0 +1,140 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_page_control_page_id_get_func_01(void);
+static void utc_UIFW_elm_page_control_page_id_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_page_control_page_id_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_page_control_page_id_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_page_control_add(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_page_control_page_id_get_func_01(void)
+{
+       int page_id = -1;
+       page_id = elm_page_control_page_id_get(test_eo);
+       TET_CHECK_PASS(-1, page_id);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_page_control_page_id_get");
+}
+
+static void utc_UIFW_elm_page_control_page_id_get_func_02(void)
+{
+       int page_id = -1;
+       page_id = elm_page_control_page_id_get(NULL);
+       TET_CHECK_FAIL(-1, page_id);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_page_control_page_id_get");
+}
diff --git a/TC/elm_ts/popup/Makefile b/TC/elm_ts/popup/Makefile
new file mode 100755 (executable)
index 0000000..ace7a7c
--- /dev/null
@@ -0,0 +1,40 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_popup_add_func \
+         utc_UIFW_elm_popup_with_buttons_add_func \
+         utc_UIFW_elm_popup_desc_set_func \
+         utc_UIFW_elm_popup_desc_get_func \
+         utc_UIFW_elm_popup_title_label_set_func \
+         utc_UIFW_elm_popup_title_label_get_func \
+         utc_UIFW_elm_popup_title_icon_set_func \
+         utc_UIFW_elm_popup_title_icon_get_func \
+         utc_UIFW_elm_popup_content_set_func \
+         utc_UIFW_elm_popup_content_get_func \
+         utc_UIFW_elm_popup_buttons_add_func \
+         utc_UIFW_elm_popup_timeout_set_func \
+         utc_UIFW_elm_popup_mode_set_func \
+         utc_UIFW_elm_popup_response_func \
+         utc_UIFW_elm_popup_orient_set_func \
+         utc_UIFW_elm_popup_rotation_set_func \
+         utc_UIFW_elm_popup_run_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/popup/tc_gen.sh b/TC/elm_ts/popup/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/popup/tslist b/TC/elm_ts/popup/tslist
new file mode 100644 (file)
index 0000000..e8fdbe3
--- /dev/null
@@ -0,0 +1,18 @@
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
+/elm_ts/popup/utc_UIFW_elm_popup_add_func
+/elm_ts/popup/utc_UIFW_elm_popup_with_buttons_add_func
+/elm_ts/popup/utc_UIFW_elm_popup_desc_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_desc_get_func
+/elm_ts/popup/utc_UIFW_elm_popup_title_label_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_title_label_get_func
+/elm_ts/popup/utc_UIFW_elm_popup_title_icon_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_title_icon_get_func
+/elm_ts/popup/utc_UIFW_elm_popup_content_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_content_get_func
+/elm_ts/popup/utc_UIFW_elm_popup_buttons_add_func
+/elm_ts/popup/utc_UIFW_elm_popup_timeout_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_mode_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_response_func
+/elm_ts/popup/utc_UIFW_elm_popup_orient_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_rotation_set_func
+/elm_ts/popup/utc_UIFW_elm_popup_run_func
diff --git a/TC/elm_ts/popup/utc_MODULE_API_func.c.in b/TC/elm_ts/popup/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..710e5a1
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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 },
+};
+
+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/popup/utc_UIFW_elm_popup_add_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_add_func.c
new file mode 100644 (file)
index 0000000..4338455
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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_popup_add_func_01(void);
+static void utc_UIFW_elm_popup_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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_popup_add()
+ */
+static void utc_UIFW_elm_popup_add_func_01(void)
+{
+       Evas_Object *popup = NULL;
+
+
+       popup = elm_popup_add(main_win);
+
+       if (!popup) {
+               tet_infoline("elm_popup_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_add()
+ */
+static void utc_UIFW_elm_popup_add_func_02(void)
+{
+       Evas_Object *popup = NULL;
+
+
+       popup = elm_popup_add(NULL);
+
+       if (!popup) {
+               tet_infoline("elm_popup_add() with parent as NULL failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_buttons_add_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_buttons_add_func.c
new file mode 100644 (file)
index 0000000..f36db48
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_buttons_add_func_01(void);
+static void utc_UIFW_elm_popup_buttons_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_buttons_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_buttons_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_buttons_add()
+ */
+static void utc_UIFW_elm_popup_buttons_add_func_01(void)
+{
+       elm_popup_buttons_add(popup, 1, "Ok", ELM_POPUP_RESPONSE_OK, NULL);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_buttons_add()
+ */
+static void utc_UIFW_elm_popup_buttons_add_func_02(void)
+{
+       elm_popup_buttons_add(NULL, 1, "Ok", ELM_POPUP_RESPONSE_OK, NULL);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_content_get_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_content_get_func.c
new file mode 100644 (file)
index 0000000..57fc708
--- /dev/null
@@ -0,0 +1,103 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_content_get_func_01(void);
+static void utc_UIFW_elm_popup_content_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_content_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_content_get_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_content_get()
+ */
+static void utc_UIFW_elm_popup_content_get_func_01(void)
+{
+       Evas_Object *content = NULL;
+       content = elm_popup_content_get(popup);
+       if (!content) {
+               tet_infoline("elm_popup_content_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_content_get()
+ */
+static void utc_UIFW_elm_popup_content_get_func_02(void)
+{
+       Evas_Object *content = NULL;
+       content = elm_popup_content_get(NULL);
+       if (content) {
+               tet_infoline("elm_popup_content_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_content_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_content_set_func.c
new file mode 100644 (file)
index 0000000..f414af7
--- /dev/null
@@ -0,0 +1,105 @@
+#include <tet_api.h>
+#include <Elementary.h>
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+
+// 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, *popup;
+char buf[4096];
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_content_set_func_01(void);
+static void utc_UIFW_elm_popup_content_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_content_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_content_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_content_set()
+ */
+static void utc_UIFW_elm_popup_content_set_func_01(void)
+{
+       Evas_Object *icon = elm_icon_add(popup);
+       snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+       elm_icon_file_set(icon, buf, NULL);
+       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+       elm_icon_scale_set(icon, 1, 1);
+       
+       elm_popup_content_set(popup,icon);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_content_set()
+ */
+static void utc_UIFW_elm_popup_content_set_func_02(void)
+{
+       Evas_Object *icon = elm_icon_add(popup);
+       snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+       elm_icon_file_set(icon, buf, NULL);
+       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+       elm_icon_scale_set(icon, 1, 1);
+       
+       elm_popup_content_set(NULL,icon);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_desc_get_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_desc_get_func.c
new file mode 100644 (file)
index 0000000..3c671cf
--- /dev/null
@@ -0,0 +1,104 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_desc_get_func_01(void);
+static void utc_UIFW_elm_popup_desc_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_desc_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_desc_get_func_02, NEGATIVE_TC_IDX },
+};
+
+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);
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_desc_get()
+ */
+static void utc_UIFW_elm_popup_desc_get_func_01(void)
+{
+       const char *text = NULL;
+       text = elm_popup_desc_get(popup);
+
+       if (!text) {
+               tet_infoline("elm_popup_desc_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_desc_get()
+ */
+static void utc_UIFW_elm_popup_desc_get_func_02(void)
+{
+       const char *text = NULL;
+       text = elm_popup_desc_get(popup);
+       if (text) {
+               tet_infoline("elm_popup_desc_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_desc_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_desc_set_func.c
new file mode 100644 (file)
index 0000000..a12604d
--- /dev/null
@@ -0,0 +1,91 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_desc_set_func_01(void);
+static void utc_UIFW_elm_popup_desc_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_desc_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_desc_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_desc_set()
+ */
+static void utc_UIFW_elm_popup_desc_set_func_01(void)
+{
+       elm_popup_desc_set(popup, "This is Popup");
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_desc_set()
+ */
+static void utc_UIFW_elm_popup_desc_set_func_02(void)
+{
+       elm_popup_desc_set(NULL, "This is Popup");
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_mode_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_mode_set_func.c
new file mode 100644 (file)
index 0000000..b4ce033
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_mode_set_func_01(void);
+static void utc_UIFW_elm_popup_mode_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_mode_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_mode_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_mode_set()
+ */
+static void utc_UIFW_elm_popup_mode_set_func_01(void)
+{
+       elm_popup_mode_set(popup, ELM_POPUP_TYPE_ALERT);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_mode_set()
+ */
+static void utc_UIFW_elm_popup_mode_set_func_02(void)
+{
+       elm_popup_mode_set(NULL, ELM_POPUP_TYPE_ALERT);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_orient_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_orient_set_func.c
new file mode 100644 (file)
index 0000000..0929abe
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_orient_set_func_01(void);
+static void utc_UIFW_elm_popup_orient_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_orient_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_orient_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_orient_set()
+ */
+static void utc_UIFW_elm_popup_orient_set_func_01(void)
+{
+       elm_popup_orient_set(popup, ELM_POPUP_ORIENT_TOP);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_orient_set()
+ */
+static void utc_UIFW_elm_popup_orient_set_func_02(void)
+{
+       elm_popup_orient_set(NULL, ELM_POPUP_ORIENT_TOP);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_response_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_response_func.c
new file mode 100644 (file)
index 0000000..2b5ee34
--- /dev/null
@@ -0,0 +1,90 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_response_func_01(void);
+static void utc_UIFW_elm_popup_response_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_response_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_response_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }       
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_response()
+ */
+static void utc_UIFW_elm_popup_response_func_01(void)
+{
+       elm_popup_response(popup, ELM_POPUP_RESPONSE_OK);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_response()
+ */
+static void utc_UIFW_elm_popup_response_func_02(void)
+{
+       elm_popup_response(NULL, ELM_POPUP_RESPONSE_OK);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_rotation_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_rotation_set_func.c
new file mode 100644 (file)
index 0000000..b114d73
--- /dev/null
@@ -0,0 +1,92 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_rotation_set_func_01(void);
+static void utc_UIFW_elm_popup_rotation_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_rotation_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_rotation_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_rotation_set()
+ */
+static void utc_UIFW_elm_popup_rotation_set_func_01(void)
+{
+       elm_popup_rotation_set(popup,90);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_rotation_set()
+ */
+static void utc_UIFW_elm_popup_rotation_set_func_02(void)
+{
+       elm_popup_rotation_set(NULL,90);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_run_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_run_func.c
new file mode 100644 (file)
index 0000000..d9c60a7
--- /dev/null
@@ -0,0 +1,122 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_run_func_01(void);
+static void utc_UIFW_elm_popup_run_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_run_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_run_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static int
+_exit_timer_popup(void *data)
+{
+       printf("\n\nexiting timer\n");
+   elm_popup_response((Evas_Object *)data, ELM_POPUP_RESPONSE_NONE);
+   return 0;
+}
+
+
+/**
+ * @brief Positive test case of elm_popup_run()
+ */
+static void utc_UIFW_elm_popup_run_func_01(void)
+{
+       int r = 0;
+
+       ecore_timer_add(1.0, _exit_timer_popup, popup);
+       r = elm_popup_run(popup);
+       
+       if (!r) {
+               tet_infoline("elm_popup_run() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       else
+       {
+               evas_object_del(popup);
+               elm_exit();
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_run()
+ */
+static void utc_UIFW_elm_popup_run_func_02(void)
+{
+       int r = 0;
+       r = elm_popup_run(NULL);
+
+       if (r) {
+               tet_infoline("elm_popup_run() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_timeout_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_timeout_set_func.c
new file mode 100644 (file)
index 0000000..87f5739
--- /dev/null
@@ -0,0 +1,91 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_timeout_set_func_01(void);
+static void utc_UIFW_elm_popup_timeout_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_timeout_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_timeout_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_timeout_set()
+ */
+static void utc_UIFW_elm_popup_timeout_set_func_01(void)
+{
+       elm_popup_timeout_set(popup, 1);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_timeout_set()
+ */
+static void utc_UIFW_elm_popup_timeout_set_func_02(void)
+{
+       elm_popup_timeout_set(NULL, 1);
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_get_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_get_func.c
new file mode 100644 (file)
index 0000000..9d17a8a
--- /dev/null
@@ -0,0 +1,107 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_title_icon_get_func_01(void);
+static void utc_UIFW_elm_popup_title_icon_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_title_icon_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_title_icon_get_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_title_icon_get()
+ */
+static void utc_UIFW_elm_popup_title_icon_get_func_01(void)
+{
+       
+       Evas_Object *icon = NULL;
+       icon = elm_popup_title_icon_get(popup);
+       
+       if (!icon) {
+               tet_infoline("elm_popup_title_icon_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_title_icon_get()
+ */
+static void utc_UIFW_elm_popup_title_icon_get_func_02(void)
+{
+       Evas_Object *icon = NULL;
+       icon = elm_popup_title_icon_get(NULL);
+       
+       if (icon) {
+               tet_infoline("elm_popup_title_icon_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_title_icon_set_func.c
new file mode 100644 (file)
index 0000000..e4a2c24
--- /dev/null
@@ -0,0 +1,109 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+#define ICON_DIR "usr/share/beat_winset_test/icon"
+
+// 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, *popup;
+char buf[4096];
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_title_icon_set_func_01(void);
+static void utc_UIFW_elm_popup_title_icon_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_title_icon_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_title_icon_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_title_icon_set()
+ */
+static void utc_UIFW_elm_popup_title_icon_set_func_01(void)
+{
+       
+       Evas_Object *icon = elm_icon_add(popup);
+       snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+       elm_icon_file_set(icon, buf, NULL);
+       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+       elm_icon_scale_set(icon, 1, 1);
+       
+       elm_popup_title_icon_set(popup,icon);
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_title_icon_set()
+ */
+static void utc_UIFW_elm_popup_title_icon_set_func_02(void)
+{
+       
+       Evas_Object *icon = elm_icon_add(popup);
+       snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+       elm_icon_file_set(icon, buf, NULL);
+       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+       elm_icon_scale_set(icon, 1, 1);
+       
+       elm_popup_title_icon_set(NULL,icon);
+       tet_result(TET_PASS);
+       
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_get_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_get_func.c
new file mode 100644 (file)
index 0000000..e6e3e1f
--- /dev/null
@@ -0,0 +1,105 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_title_label_get_func_01(void);
+static void utc_UIFW_elm_popup_title_label_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_title_label_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_title_label_get_func_02, NEGATIVE_TC_IDX },
+};
+
+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);     
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_title_label_get()
+ */
+static void utc_UIFW_elm_popup_title_label_get_func_01(void)
+{
+       const char *text = NULL;
+       text = elm_popup_title_label_get(popup);
+
+       if (!text) {
+               tet_infoline("elm_popup_title_label_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_title_label_get()
+ */
+static void utc_UIFW_elm_popup_title_label_get_func_02(void)
+{
+       const char *text = NULL;
+       text = elm_popup_title_label_get(NULL);
+       if (text) {
+               tet_infoline("elm_popup_title_label_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_set_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_title_label_set_func.c
new file mode 100644 (file)
index 0000000..d8f7c05
--- /dev/null
@@ -0,0 +1,91 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *popup;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_popup_title_label_set_func_01(void);
+static void utc_UIFW_elm_popup_title_label_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_title_label_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_title_label_set_func_02, NEGATIVE_TC_IDX },
+};
+
+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);
+       popup = elm_popup_add(main_win);
+       evas_object_show(popup);        
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+       if ( NULL != popup ) {
+               evas_object_del(popup);
+               popup = NULL;
+       }
+       elm_shutdown();
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_popup_title_label_set()
+ */
+static void utc_UIFW_elm_popup_title_label_set_func_01(void)
+{
+       elm_popup_title_label_set(popup, "This is Popup");
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_title_label_set()
+ */
+static void utc_UIFW_elm_popup_title_label_set_func_02(void)
+{
+       elm_popup_title_label_set(NULL, "This is Popup");
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/popup/utc_UIFW_elm_popup_with_buttons_add_func.c b/TC/elm_ts/popup/utc_UIFW_elm_popup_with_buttons_add_func.c
new file mode 100644 (file)
index 0000000..1ba5ba8
--- /dev/null
@@ -0,0 +1,99 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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_popup_with_buttons_add_func_01(void);
+static void utc_UIFW_elm_popup_with_buttons_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_popup_with_buttons_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_popup_with_buttons_add_func_02, NEGATIVE_TC_IDX },
+};
+
+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_popup_with_buttons_add()
+ */
+static void utc_UIFW_elm_popup_with_buttons_add_func_01(void)
+{
+       Evas_Object *popup = NULL;
+       popup = elm_popup_with_buttons_add(main_win, "title", "this is text", 1, "ok", ELM_POPUP_RESPONSE_OK, NULL);
+
+       if (!popup) {
+               tet_infoline("elm_popup_with_buttons_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_popup_with_buttons_add()
+ */
+static void utc_UIFW_elm_popup_with_buttons_add_func_02(void)
+{
+       Evas_Object *popup = NULL;
+       popup = elm_popup_with_buttons_add(NULL, "title", "this is text", 1, "ok", ELM_POPUP_RESPONSE_OK, NULL);
+               
+       if (!popup) {
+               tet_infoline("elm_popup_with_buttons_add() parent as NULL failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/searchbar/Makefile b/TC/elm_ts/searchbar/Makefile
new file mode 100755 (executable)
index 0000000..f8714fc
--- /dev/null
@@ -0,0 +1,24 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_searchbar_add_func \
+         utc_UIFW_elm_searchbar_entry_get_func \
+         utc_UIFW_elm_searchbar_text_get_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 *~ *.o tet_captured tet_lock $(TARGETS)
diff --git a/TC/elm_ts/searchbar/tc_gen.sh b/TC/elm_ts/searchbar/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/searchbar/tslist b/TC/elm_ts/searchbar/tslist
new file mode 100755 (executable)
index 0000000..df18b24
--- /dev/null
@@ -0,0 +1,3 @@
+/elm_ts/searchbar/utc_UIFW_elm_searchbar_add_func
+/elm_ts/searchbar/utc_UIFW_elm_searchbar_entry_get_func
+/elm_ts/searchbar/utc_UIFW_elm_searchbar_text_get_func
diff --git a/TC/elm_ts/searchbar/utc_MODULE_API_func.c.in b/TC/elm_ts/searchbar/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..da52d9f
--- /dev/null
@@ -0,0 +1,90 @@
+#include <tet_api.h>
+
+
+// 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; \
+               } \
+}
+
+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 },
+};
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @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/searchbar/utc_UIFW_elm_searchbar_add_func.c b/TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_add_func.c
new file mode 100755 (executable)
index 0000000..df55e85
--- /dev/null
@@ -0,0 +1,171 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_searchbar_add_func_01(void);
+static void utc_UIFW_elm_searchbar_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_searchbar_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_searchbar_add_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "SearchBar", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "SearchBar");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_searchbar_add()
+ */
+static void utc_UIFW_elm_searchbar_add_func_01(void)
+{
+       test_eo = elm_searchbar_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An SearchBar is added successfully.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_searchbar_add()
+ */
+static void utc_UIFW_elm_searchbar_add_func_02(void)
+{
+       test_eo = elm_searchbar_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an SearchBar has failed.");
+}
diff --git a/TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_entry_get_func.c b/TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_entry_get_func.c
new file mode 100755 (executable)
index 0000000..49f6cdd
--- /dev/null
@@ -0,0 +1,175 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_searchbar_entry_get_func_01(void);
+static void utc_UIFW_elm_searchbar_entry_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_searchbar_entry_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_searchbar_entry_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "SearchBar", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "SearchBar");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_searchbar_entry_get()
+ */
+static void utc_UIFW_elm_searchbar_entry_get_func_01(void)
+{
+       test_eo = elm_searchbar_add(test_win);
+       Evas_Object *en = NULL;
+       en = elm_searchbar_entry_get(test_eo);
+       TET_CHECK_PASS(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Getting entry of SearchBar is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_searchbar_entry_get()
+ */
+static void utc_UIFW_elm_searchbar_entry_get_func_02(void)
+{
+       //test_eo = elm_searchbar_add(NULL);
+       Evas_Object *en = NULL;
+       en = elm_searchbar_entry_get(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Getting entry of SearchBar is failed.");
+}
diff --git a/TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_text_get_func.c b/TC/elm_ts/searchbar/utc_UIFW_elm_searchbar_text_get_func.c
new file mode 100755 (executable)
index 0000000..a6fe11a
--- /dev/null
@@ -0,0 +1,177 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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; \
+               } \
+}
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_searchbar_text_get_func_01(void);
+static void utc_UIFW_elm_searchbar_text_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_searchbar_text_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_searchbar_text_get_func_02, NEGATIVE_TC_IDX },
+       { NULL, 0}
+};
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);
+
+       //elm_run();
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+
+       // Test precondition
+       test_win = elm_win_add(NULL, "SearchBar", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "SearchBar");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               evas_object_del(main_win);
+               main_win = NULL;
+       }
+
+       if ( NULL != main_bg ) {
+               evas_object_del(main_bg);
+               main_bg = NULL;
+       }
+
+       if ( NULL != test_win ) {
+               evas_object_del(test_win);
+               test_win = NULL;
+       }
+
+       if ( NULL != test_bg ) {
+               evas_object_del(test_bg);
+               test_bg = NULL;
+       }
+
+       if ( NULL != test_eo ) {
+               evas_object_del(test_eo);
+               test_eo = NULL;
+       }
+
+       // clean up and shut down
+       elm_shutdown(); ;
+
+       tet_infoline("[[ TET_MSG ]]:: ========= TC COMPLETE  ========== ");
+}
+
+/**
+ * @brief Positive test case of elm_searchbar_text_get()
+ */
+static void utc_UIFW_elm_searchbar_text_get_func_01(void)
+{
+       test_eo = elm_searchbar_add(test_win);
+       char *ret_str = NULL;
+       elm_searchbar_text_set(test_eo, "test string");
+       ret_str = elm_searchbar_text_get(test_eo);
+       TET_CHECK_PASS(NULL, ret_str);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, Setting entry of SearchBar is success.");
+}
+
+/**
+ * @brief Negative test case of ug_init elm_searchbar_text_get()
+ */
+static void utc_UIFW_elm_searchbar_text_get_func_02(void)
+{
+       test_eo = elm_searchbar_add(test_win);
+       char *ret_str = NULL;
+       elm_searchbar_text_set(test_eo, NULL);
+       ret_str = elm_searchbar_text_get(test_eo);
+       TET_CHECK_FAIL(NULL, ret_str);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Setting entry of SearchBar is failed.");
+}
diff --git a/TC/elm_ts/selectioninfo/Makefile b/TC/elm_ts/selectioninfo/Makefile
new file mode 100755 (executable)
index 0000000..4815fa6
--- /dev/null
@@ -0,0 +1,23 @@
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_selectioninfo_add_func \
+         utc_UIFW_elm_selectioninfo_checked_count_get_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)
diff --git a/TC/elm_ts/selectioninfo/tslist b/TC/elm_ts/selectioninfo/tslist
new file mode 100644 (file)
index 0000000..75366ad
--- /dev/null
@@ -0,0 +1,2 @@
+/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func
+/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func
diff --git a/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c b/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_add_func.c
new file mode 100644 (file)
index 0000000..8735490
--- /dev/null
@@ -0,0 +1,140 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_selectioninfo_add_func_01(void);
+static void utc_UIFW_elm_selectioninfo_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_selectioninfo_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_selectioninfo_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Selection Info", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Selection Info");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_selectioninfo_add_func_01(void)
+{
+       test_eo = NULL;
+       test_eo = elm_selectioninfo_add(test_win);
+       TET_CHECK_PASS(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_selectioninfo_add");
+}
+
+static void utc_UIFW_elm_selectioninfo_add_func_02(void)
+{
+       test_eo = NULL;
+       test_eo = elm_selectioninfo_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_selectioninfo_add");
+}
diff --git a/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c b/TC/elm_ts/selectioninfo/utc_UIFW_elm_selectioninfo_checked_count_get_func.c
new file mode 100644 (file)
index 0000000..e1bf3a2
--- /dev/null
@@ -0,0 +1,147 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// Definitions
+// For checking the result of the positive test case.
+#define TET_CHECK_PASS(x1, y...) \
+{ \
+       if (y == (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...) \
+{ \
+       if (y != (x1)) \
+               { \
+                       tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
+                       tet_result(TET_FAIL); \
+                       return; \
+               } \
+}
+
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+Eina_Bool state_pointer[10] = {0};
+
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
+       evas_object_resize(main_win, 320, 480);
+       evas_object_show(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_selectioninfo_checked_count_get_func_01(void);
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_selectioninfo_checked_count_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_selectioninfo_checked_count_get_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       _elm_precondition();
+
+       test_win = elm_win_add(NULL, "Page Control", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Page Control");
+       elm_win_autodel_set(test_win, 1);
+       
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);
+
+       test_eo = elm_selectioninfo_add(test_win);
+       
+       int i;
+       for (i = 0; i < 10 ; i++)
+               state_pointer[i] = EINA_FALSE;
+
+       elm_selectioninfo_check_state_set(test_eo, &state_pointer[0], 10);
+       
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+static void cleanup(void)
+{
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+       
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_01(void)
+{
+       int checked_count = -1;
+       checked_count = elm_selectioninfo_checked_count_get(test_eo);
+       TET_CHECK_PASS(-1, checked_count);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, elm_selectioninfo_checked_count_get");
+}
+
+static void utc_UIFW_elm_selectioninfo_checked_count_get_func_02(void)
+{
+       int checked_count = -1;
+       checked_count = elm_selectioninfo_checked_count_get(NULL);
+       TET_CHECK_FAIL(-1, checked_count);
+       
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, elm_selectioninfo_checked_count_get");
+}
diff --git a/TC/elm_ts/template/Makefile b/TC/elm_ts/template/Makefile
new file mode 100755 (executable)
index 0000000..bb6ac7f
--- /dev/null
@@ -0,0 +1,25 @@
+CC ?= gcc
+
+TARGETS = uts_elm_imageslider_add_test \
+         uts_elm_imageslider_add_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/template/tc_gen.sh b/TC/elm_ts/template/tc_gen.sh
new file mode 100755 (executable)
index 0000000..a55200a
--- /dev/null
@@ -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/template/tslist b/TC/elm_ts/template/tslist
new file mode 100644 (file)
index 0000000..5cb662f
--- /dev/null
@@ -0,0 +1 @@
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
diff --git a/TC/elm_ts/template/utc_MODULE_API_func.c.in b/TC/elm_ts/template/utc_MODULE_API_func.c.in
new file mode 100755 (executable)
index 0000000..6c6febe
--- /dev/null
@@ -0,0 +1,104 @@
+#include <tet_api.h>
+#include <Elementary.h>
+
+// 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/template/utc_UIFW_elm_imageslider_add_func.c b/TC/elm_ts/template/utc_UIFW_elm_imageslider_add_func.c
new file mode 100644 (file)
index 0000000..04a79b9
--- /dev/null
@@ -0,0 +1,64 @@
+#include <tet_api.h>
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_add_func_01(void);
+static void utc_UIFW_elm_imageslider_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_add_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_add()
+ */
+static void utc_UIFW_elm_imageslider_add_func_01(void)
+{
+       int r = 0;
+
+/*
+       r = elm_imageslider_add(...);
+*/
+       if (r) {
+               tet_infoline("elm_imageslider_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_add()
+ */
+static void utc_UIFW_elm_imageslider_add_func_02(void)
+{
+       int r = 0;
+
+/*
+       r = elm_imageslider_add(...);
+*/
+       if (r) {
+               tet_infoline("elm_imageslider_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/template/utc_UIFW_elm_imageslider_append_func.c b/TC/elm_ts/template/utc_UIFW_elm_imageslider_append_func.c
new file mode 100644 (file)
index 0000000..235abbe
--- /dev/null
@@ -0,0 +1,64 @@
+#include <tet_api.h>
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_imageslider_append_func_01(void);
+static void utc_UIFW_elm_imageslider_append_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_imageslider_append_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_imageslider_append_func_02, NEGATIVE_TC_IDX },
+};
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @brief Positive test case of elm_imageslider_append()
+ */
+static void utc_UIFW_elm_imageslider_append_func_01(void)
+{
+       int r = 0;
+
+/*
+       r = elm_imageslider_append(...);
+*/
+       if (r) {
+               tet_infoline("elm_imageslider_append() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_imageslider_append()
+ */
+static void utc_UIFW_elm_imageslider_append_func_02(void)
+{
+       int r = 0;
+
+/*
+       r = elm_imageslider_append(...);
+*/
+       if (r) {
+               tet_infoline("elm_imageslider_append() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/template/uts_elm_imageslider_add_func.c b/TC/elm_ts/template/uts_elm_imageslider_add_func.c
new file mode 100755 (executable)
index 0000000..ea1fbd0
--- /dev/null
@@ -0,0 +1,147 @@
+
+#include <Elementary.h>
+//#include "winset_test.h"
+//#include "winset_until.h"
+#include "uts_elm_imageslider_add_test.h"
+
+// 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; \
+               } \
+}
+
+// Declare the global variables
+Evas_Object *main_win, *main_bg;
+Evas_Object *test_win, *test_bg;
+Evas_Object *test_eo = NULL;
+// Declare internal functions
+void _elm_precondition(void);
+static void _win_del(void *data, Evas_Object *obj, void *event_info);
+       
+
+// Delete main window
+static void _win_del(void *data, Evas_Object *obj, void *event_info)
+{
+       elm_exit();
+}
+
+// Do precondition.
+void _elm_precondition(void)
+{
+       elm_init(0, NULL);
+\r
+       main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+       elm_win_title_set(main_win, "Elementary Unit Test Suite");
+       evas_object_smart_callback_add(main_win, "delete,request", _win_del, NULL);
+       main_bg = elm_bg_add(main_win);
+       evas_object_size_hint_weight_set(main_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(main_win, main_bg);
+       evas_object_show(main_bg);
+
+       // set an initial window size
+       evas_object_resize(main_win, 320, 480);
+       // show the window
+       evas_object_show(main_win);     
+
+       //elm_run(); 
+}
+
+
+// Start up function for each test purpose
+static void
+startup()
+{
+       tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+
+       // Elm precondition
+       _elm_precondition();
+       
+       // Test precondition
+       test_win = elm_win_add(NULL, "Image Silder", ELM_WIN_BASIC);
+       elm_win_title_set(test_win, "Image Slider");
+       elm_win_autodel_set(test_win, 1);
+
+       test_bg = elm_bg_add(test_win);
+       elm_win_resize_object_add(test_win, test_bg);
+       evas_object_size_hint_weight_set(test_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       evas_object_show(test_bg);      
+       
+       evas_object_resize(test_win, 480, 800);
+       evas_object_show(test_win);     
+
+       tet_infoline("[[ TET_MSG ]]:: Completing startup");
+}
+
+// Clean up function for each test purpose
+static void
+cleanup()
+{
+       // Clean up the used resources.
+       if ( NULL != main_win ) {
+               main_win = NULL;
+       }
+       
+       if ( NULL != main_bg ) {
+               main_bg = NULL;
+       }
+       
+       if ( NULL != test_win ) {
+               test_win = NULL;
+       }
+       
+       if ( NULL != test_bg ) {
+               test_bg = NULL;
+       }
+       
+       if ( NULL != test_eo ) {
+               test_eo = NULL;
+       }
+
+       elm_exit();
+       
+       tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+       
+}
+
+// Positive test case.
+void uts_elm_imageslider_add_test_001()
+{
+       test_eo = elm_imageslider_add(test_win);
+       TET_CHECK_PASS(NULL, test_win);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_01, [TYPE]: Positive, [RESULT]:PASS, An Image Slider is added successfully.");     
+
+}
+
+
+// Negative test case.
+void uts_elm_imageslider_add_test_002()
+{
+       test_eo = elm_imageslider_add(NULL);
+       TET_CHECK_FAIL(NULL, test_eo);
+
+       tet_result(TET_PASS);
+       tet_infoline("[[ TET_MSG ]]::[ID]:TC_02, [TYPE]: Negative, [RESULT]:PASS, Adding an Image Slider has failed."); 
+}
+
+
diff --git a/TC/elm_ts/template/uts_elm_imageslider_add_func.h b/TC/elm_ts/template/uts_elm_imageslider_add_func.h
new file mode 100755 (executable)
index 0000000..dc1e354
--- /dev/null
@@ -0,0 +1,30 @@
+
+
+#ifndef _UTS_ELM_IMAGESLIDER_ADD_TEST_
+#define _UTS_ELM_IMAGESLIDER_ADD_TEST_
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <glib.h>
+#include <tet_api.h>
+
+// Test cases in unit test suite
+void uts_elm_imageslider_add_test_001();
+void uts_elm_imageslider_add_test_002();
+
+
+static void startup();
+static void cleanup();
+
+// Initialize TCM data structures
+void (*tet_startup)() = startup;
+void (*tet_cleanup)() = cleanup;
+
+struct tet_testlist tet_testlist[] = {
+               {uts_elm_imageslider_add_test_001, 1},
+               {uts_elm_imageslider_add_test_002, 2},
+               {NULL, 0}
+};
+
+#endif // _UTS_ELM_IMAGESLIDER_ADD_TEST_
diff --git a/TC/execute.sh b/TC/execute.sh
new file mode 100755 (executable)
index 0000000..e4e43ab
--- /dev/null
@@ -0,0 +1,81 @@
+export MACHINE=`echo $SBOX_UNAME_MACHINE`
+
+if [ $MACHINE = "i686" ]
+then
+       TET_SCEN_FILE=tet_scen_i686
+else
+       TET_SCEN_FILE=tet_scen_arm
+fi
+
+TET_SCEN_NAME=all
+RESULT_TO_JOURNAL="false"
+
+if [ $# -eq 0 ]
+then
+       RESULT_TO_JOURNAL="false"
+       TET_SCEN_NAME="tet_scen"        
+fi
+
+SCEN_FILE_INPUT="false"
+args_count=0
+
+for i in $* 
+do
+       args_count=`expr $args_count + 1`
+       if [ $SCEN_FILE_INPUT = "true" ]
+       then
+               TET_SCEN_FILE=$i
+               SCEN_FILE_INPUT="false"
+       elif [ $i = "-j" ]
+       then
+               RESULT_TO_JOURNAL="true"
+       elif [ $i = "-s" ]
+       then
+               SCEN_FILE_INPUT="true"
+       elif [ $args_count = $# ]
+       then
+               TET_SCEN_NAME=$i
+       fi
+done
+
+#Export the path information
+. ./_export_env.sh
+
+echo TET_ROOT=$TET_ROOT
+echo TET_SUITE_ROOT=$TET_SUITE_ROOT
+echo TET_SCEN_FILE=$TET_SCEN_FILE
+echo TET_SCEN_NAME=$TET_SCEN_NAME
+echo RESULT_TO_JOURNAL=$RESULT_TO_JOURNAL
+
+RESULT_DIR=result
+#if [ $MACHINE = "i686" ]
+if [ $MACHINE = "i686" ]
+then
+       TEXT_RESULT=$RESULT_DIR/EXE-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
+       JOURNAL_RESULT=$RESULT_DIR/EXE-i686-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
+else
+       TEXT_RESULT=$RESULT_DIR/EXE-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.html
+       JOURNAL_RESULT=$RESULT_DIR/EXE-ARM-$TET_SCEN_NAME-$FILE_NAME_EXTENSION.journal
+fi             
+
+### Make Result output directory
+echo
+echo "$RESULT_DIR Folder Creat"
+if [ -e $RESULT_DIR ]
+then
+       echo "  -> $RESULT_DIR Folder exist"
+else
+       mkdir $RESULT_DIR
+fi
+
+##execute and mkae html report
+if [ $RESULT_TO_JOURNAL = "false" ]
+then
+       tcc -e -p -j - -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
+else
+       tcc -e -j $JOURNAL_RESULT -p -s $TET_SCEN_FILE ./ $TET_SCEN_NAME
+       grw -c 3 -f chtml -o $TEXT_RESULT -- $JOURNAL_RESULT
+       echo RESULT_SUMMARY     = $TEXT_RESULT
+       echo RESULT_JOURNAL  = $JOURNAL_RESULT
+fi
+       rm -rf ./results
diff --git a/TC/tet_code b/TC/tet_code
new file mode 100755 (executable)
index 0000000..8d6c2cd
--- /dev/null
@@ -0,0 +1,13 @@
+# TET reserved codes
+0 "PASS"
+1 "FAIL"
+2 "UNRESOLVED"
+3 "NOTINUSE"
+4 "UNSUPPORTED"
+5 "UNTESTED"
+6 "UNINITIATED"
+7 "NORESULT"
+
+# Test suite additional codes
+33 "INSPECT"
+
diff --git a/TC/tet_scen_arm b/TC/tet_scen_arm
new file mode 100755 (executable)
index 0000000..3ed7bea
--- /dev/null
@@ -0,0 +1,38 @@
+all
+       "Test all XO frameworks"
+
+       ^elm
+
+##### Scenarios for the frameworks ######
+
+# EFL 
+elm
+       :include:/elm_ts/imageslider/tslist
+       :include:/elm_ts/colorpalette/tslist
+       :include:/elm_ts/colorpicker/tslist
+       :include:/elm_ts/gengrid/tslist
+        :include:/elm_ts/pagecontrol/tslist
+        :include:/elm_ts/selectioninfo/tslist
+       :include:/elm_ts/button/tslist
+       :include:/elm_ts/popup/tslist
+       :include:/elm_ts/label/tslist
+       :include:/elm_ts/searchbar/tslist
+
+
+#yhkim
+ch 
+       /telephony-framework/sim/unit/uts_tapi_verify_chv
+pn 
+       /telephony-framework/sim/unit/uts_tapi_change_pin1
+cn 
+       /telephony-framework/sim/unit/uts_tapi_pb_get_storage_count
+in 
+       /telephony-framework/sim/unit/uts_tapi_pb_entry_info
+ac 
+       /telephony-framework/sim/unit/uts_tapi_pb_read_access
+ma 
+       /telephony-framework/sim/unit/uts_tapi_pb_rec_modify_access
+da 
+       /telephony-framework/sim/unit/uts_tapi_pb_delete_access
+if 
+       /telephony-framework/sim/unit/uts_tapi_pb_capability_info
diff --git a/TC/tet_scen_i686 b/TC/tet_scen_i686
new file mode 100755 (executable)
index 0000000..854c467
--- /dev/null
@@ -0,0 +1,37 @@
+all
+       "Test all XO frameworks"
+
+       ^mediaplayer
+       ^camcorder
+       ^sound
+       ^attrs
+
+##### Scenarios for the frameworks ######
+
+# Multimedia
+elm
+        :include:/elm_ts/imageslider/tslist
+        :include:/elm_ts/colorpalette/tslist
+        :include:/elm_ts/gengrid/tslist
+        :include:/elm_ts/pagecontrol/tslist
+        :include:/elm_ts/selectioninfo/tslist
+        :include:/elm_ts/popup/tslist
+       
+
+#yhkim
+ch 
+       /telephony-framework/sim/unit/uts_tapi_verify_chv
+pn 
+       /telephony-framework/sim/unit/uts_tapi_change_pin1
+cn 
+       /telephony-framework/sim/unit/uts_tapi_pb_get_storage_count
+in 
+       /telephony-framework/sim/unit/uts_tapi_pb_entry_info
+ac 
+       /telephony-framework/sim/unit/uts_tapi_pb_read_access
+ma 
+       /telephony-framework/sim/unit/uts_tapi_pb_rec_modify_access
+da 
+       /telephony-framework/sim/unit/uts_tapi_pb_delete_access
+if 
+       /telephony-framework/sim/unit/uts_tapi_pb_capability_info
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
new file mode 100755 (executable)
index 0000000..c95e21e
--- /dev/null
@@ -0,0 +1,5 @@
+TET_OUTPUT_CAPTURE=true
+TET_BUILD_TOOL=make
+#TET_BUILD_FILE=-f Makefile
+#TET_API_COMPLIANT=True
+
diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg
new file mode 100755 (executable)
index 0000000..48479a9
--- /dev/null
@@ -0,0 +1,4 @@
+TET_OUTPUT_CAPTURE=True
+TET_CLEAN_TOOL=make clean
+#TET_CLEAN_FILE=clean
+
diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg
new file mode 100755 (executable)
index 0000000..e1cbaf9
--- /dev/null
@@ -0,0 +1,5 @@
+TET_OUTPUT_CAPTURE=false
+#TET_EXEC_IN_PLACE=True
+#TET_EXEC_TOOL=exectool
+
+
index f60edd9..30e0814 100644 (file)
@@ -6,6 +6,14 @@ elementary (1.0.0+svn.51480slp2+build01) unstable; urgency=low
 
  -- Jaehwan Kim <jae.hwan.kim@samsung.com>  Tue, 31 Aug 2010 22:57:03 +0900
 
+elementary (0.4.0+svn.49550slp2+3build52) unstable; urgency=low
+
+  * repackage for webview
+  * Git: 165.213.180.234:/git/slp/pkgs/elementary
+  * Tag: elementary_0.4.0+svn.49550slp2+3build52
+
+ -- WooHyun Jung <wh0705.jung@samsung.com>  Wed, 08 Sep 2010 18:15:30 +0900
+
 elementary (0.4.0+svn.49550slp2+3build51) unstable; urgency=low
 
   * [elm_theme] Added NULL check to elm_theme_get().
index a3cd9e8..6686a32 100755 (executable)
@@ -640,8 +640,11 @@ extern "C" {
    EAPI void         elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected);
    EAPI Eina_Bool    elm_gengrid_item_selected_get(const Elm_Gengrid_Item *item);
    EAPI const Evas_Object *elm_gengrid_item_object_get(Elm_Gengrid_Item *item);
+   EAPI Elm_Gengrid_Item *elm_gengrid_selected_item_get(const Evas_Object *obj);
    EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj);
    EAPI const Eina_List *elm_gengrid_items_get(const Evas_Object *obj);
+   EAPI void elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, Eina_Bool disabled);
+   EAPI Eina_Bool elm_gengrid_item_disabled_get(const Elm_Gengrid_Item *item);
    EAPI Elm_Gengrid_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gcc,  const void *data, Evas_Smart_Cb func, const void *func_data);
    /* smart callbacks called:
     *
@@ -1199,10 +1202,12 @@ extern "C" {
 
    struct _Elm_Genlist_Edit_Class
      {
-          GenlistRemoveItemFunc remove;
-          GenlistInsertNewFunc insert_new;
-          GenlistMoveFunc move;
-          GenlistItemSelectedFunc item_selected;
+        GenlistRemoveItemFunc remove;
+        GenlistInsertNewFunc insert_new;
+        GenlistMoveFunc move;
+        GenlistItemSelectedFunc item_selected;
+        const char *item_style;
+        const char *select_all_item_style;
      };
    EAPI Evas_Object      *elm_genlist_add(Evas_Object *parent);
    EAPI void              elm_genlist_clear(Evas_Object *obj);
@@ -1780,26 +1785,26 @@ extern "C" {
     */
 
    typedef struct _Discpicker_Item Elm_Discpicker_Item;
-   EINA_DEPRECATED EAPI Evas_Object     *elm_discpicker_add(Evas_Object *parent);
-   EINA_DEPRECATED EAPI void             elm_discpicker_row_height_set(Evas_Object *obj, unsigned int row_height);
-   EINA_DEPRECATED EAPI void             elm_discpicker_next(Evas_Object *obj);
-   EINA_DEPRECATED EAPI void             elm_discpicker_prev(Evas_Object *obj);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_item_append(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_item_prepend(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data);
-   EINA_DEPRECATED EAPI const Eina_List *elm_discpicker_items_get(Evas_Object *obj);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_first_item_get(Evas_Object *obj);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_last_item_get(Evas_Object *obj);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_selected_item_get(Evas_Object *obj);
-   EINA_DEPRECATED EAPI void             elm_discpicker_item_selected_set(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI void             elm_discpicker_item_del(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI const char      *elm_discpicker_item_label_get(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI void             elm_discpicker_item_label_set(Elm_Discpicker_Item *item, const char *label);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_item_prev(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI Elm_Discpicker_Item *elm_discpicker_item_next(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI void            *elm_discpicker_item_data_get(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI void             elm_discpicker_item_data_set(Elm_Discpicker_Item *item, void *data);
-   EINA_DEPRECATED EAPI Eina_Bool        elm_discpicker_item_disabled_get(Elm_Discpicker_Item *item);
-   EINA_DEPRECATED EAPI void             elm_discpicker_item_disabled_set(Elm_Discpicker_Item *item, Eina_Bool disabled);
+   EAPI Evas_Object     *elm_discpicker_add(Evas_Object *parent);
+   EAPI void             elm_discpicker_row_height_set(Evas_Object *obj, unsigned int row_height);
+   EAPI void             elm_discpicker_next(Evas_Object *obj);
+   EAPI void             elm_discpicker_prev(Evas_Object *obj);
+   EAPI Elm_Discpicker_Item *elm_discpicker_item_append(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data);
+   EAPI Elm_Discpicker_Item *elm_discpicker_item_prepend(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data);
+   EAPI const Eina_List *elm_discpicker_items_get(Evas_Object *obj);
+   EAPI Elm_Discpicker_Item *elm_discpicker_first_item_get(Evas_Object *obj);
+   EAPI Elm_Discpicker_Item *elm_discpicker_last_item_get(Evas_Object *obj);
+   EAPI Elm_Discpicker_Item *elm_discpicker_selected_item_get(Evas_Object *obj);
+   EAPI void             elm_discpicker_item_selected_set(Elm_Discpicker_Item *item);
+   EAPI void             elm_discpicker_item_del(Elm_Discpicker_Item *item);
+   EAPI const char      *elm_discpicker_item_label_get(Elm_Discpicker_Item *item);
+   EAPI void             elm_discpicker_item_label_set(Elm_Discpicker_Item *item, const char *label);
+   EAPI Elm_Discpicker_Item *elm_discpicker_item_prev(Elm_Discpicker_Item *item);
+   EAPI Elm_Discpicker_Item *elm_discpicker_item_next(Elm_Discpicker_Item *item);
+   EAPI void            *elm_discpicker_item_data_get(Elm_Discpicker_Item *item);
+   EAPI void             elm_discpicker_item_data_set(Elm_Discpicker_Item *item, void *data);
+   EAPI Eina_Bool        elm_discpicker_item_disabled_get(Elm_Discpicker_Item *item);
+   EAPI void             elm_discpicker_item_disabled_set(Elm_Discpicker_Item *item, Eina_Bool disabled);
     /* smart callback called:
     * "selected" - when discpicker selected item is changed
     * "overflowed" - when discpicker item is changed to first item from last item
@@ -1971,6 +1976,7 @@ extern "C" {
    EAPI void         elm_popup_title_label_set(Evas_Object *obj, const char *text);
    EAPI const char  *elm_popup_title_label_get(Evas_Object *obj);
    EAPI void         elm_popup_title_icon_set(Evas_Object *obj, Evas_Object *icon);
+   EAPI Evas_Object *elm_popup_title_icon_get(Evas_Object *obj);
    EAPI void         elm_popup_content_set(Evas_Object *obj, Evas_Object *content);
    EAPI Evas_Object* elm_popup_content_get(Evas_Object *obj);
    EAPI void         elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, char *first_button_text,  ...);
@@ -2277,16 +2283,16 @@ extern "C" {
 
    /* Toolbar 2 */
    typedef struct _Elm_Toolbar2_Item Elm_Toolbar2_Item;
-   EAPI Evas_Object *elm_toolbar2_add(Evas_Object *parent);
-   EAPI void         elm_toolbar2_icon_size_set(Evas_Object *obj, int icon_size);
-   EAPI int          elm_toolbar2_icon_size_get(Evas_Object *obj);
-   EAPI Elm_Toolbar2_Item *elm_toolbar2_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
-   EAPI Evas_Object *elm_toolbar2_item_icon_get(Elm_Toolbar2_Item *item);
-   EAPI void         elm_toolbar2_item_del(Elm_Toolbar2_Item *it);
-   EAPI void         elm_toolbar2_item_del_cb_set(Elm_Toolbar2_Item *it, void (*func)(void *data, Evas_Object *obj, void *event_info));
-   EAPI void         elm_toolbar2_scrollable_set(Evas_Object *obj, Eina_Bool scrollable);
-   EAPI void         elm_toolbar2_homogenous_set(Evas_Object *obj, Eina_Bool homogenous);
-   EAPI void         elm_toolbar2_align_set(Evas_Object *obj, double align);
+   EINA_DEPRECATED EAPI Evas_Object *elm_toolbar2_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI void         elm_toolbar2_icon_size_set(Evas_Object *obj, int icon_size);
+   EINA_DEPRECATED EAPI int          elm_toolbar2_icon_size_get(Evas_Object *obj);
+   EINA_DEPRECATED EAPI Elm_Toolbar2_Item *elm_toolbar2_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
+   EINA_DEPRECATED EAPI Evas_Object *elm_toolbar2_item_icon_get(Elm_Toolbar2_Item *item);
+   EINA_DEPRECATED EAPI void         elm_toolbar2_item_del(Elm_Toolbar2_Item *it);
+   EINA_DEPRECATED EAPI void         elm_toolbar2_item_del_cb_set(Elm_Toolbar2_Item *it, void (*func)(void *data, Evas_Object *obj, void *event_info));
+   EINA_DEPRECATED EAPI void         elm_toolbar2_scrollable_set(Evas_Object *obj, Eina_Bool scrollable);
+   EINA_DEPRECATED EAPI void         elm_toolbar2_homogenous_set(Evas_Object *obj, Eina_Bool homogenous);
+   EINA_DEPRECATED EAPI void         elm_toolbar2_align_set(Evas_Object *obj, double align);
 
    /* colorpicker */
    EAPI Evas_Object *elm_colorpicker_add(Evas_Object *parent);
@@ -2407,8 +2413,8 @@ extern "C" {
     */
    
    /* zoomcontrols */
-   EAPI Evas_Object *elm_zoomcontrols_add(Evas_Object *parent);
-   EAPI void         elm_zoomcontrols_range_set(Evas_Object *obj, int range);
+   EINA_DEPRECATED EAPI Evas_Object *elm_zoomcontrols_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI void         elm_zoomcontrols_range_set(Evas_Object *obj, int range);
    /* smart callbacks called:
     * "up_clicked" - when up button of zoomcontrols is clicked 
     * "down_clicked" - when down button of zoomcontrols is clicked
@@ -2484,25 +2490,30 @@ extern "C" {
         ELM_SLIDINGDRAWER_RIGHT,
         ELM_SLIDINGDRAWER_TOP
      } Elm_SlidingDrawer_Pos;
-  
+   typedef struct _Elm_SlidingDrawer_Drag_Value {
+      double x, y;
+   }Elm_SlidingDrawer_Drag_Value;
+   
    EAPI Evas_Object *elm_slidingdrawer_add(Evas_Object *parent);
    EAPI void         elm_slidingdrawer_content_set (Evas_Object *obj, Evas_Object *content);
    EAPI Evas_Object *elm_slidingdrawer_content_unset(Evas_Object *obj);
    EAPI void         elm_slidingdrawer_pos_set(Evas_Object *obj, Elm_SlidingDrawer_Pos pos);
-   EAPI void         elm_slidingdrawer_max_drag_set(Evas_Object *obj, double dw,  double dh);
-
+   EAPI void         elm_slidingdrawer_max_drag_value_set(Evas_Object *obj, double dw,  double dh);
+   EAPI void         elm_slidingdrawer_drag_value_set(Evas_Object *obj, double dx, double dy);
+   
    /* wipercontrol*/
-   EAPI Evas_Object *elm_wipercontrol_add(Evas_Object *parent);
-   EAPI void         elm_wipercontrol_below_content_set (Evas_Object *obj, Evas_Object *content);
-   EAPI void         elm_wipercontrol_above_content_set (Evas_Object *obj, Evas_Object *content);
+   EINA_DEPRECATED EAPI Evas_Object *elm_wipercontrol_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI void         elm_wipercontrol_below_content_set (Evas_Object *obj, Evas_Object *content);
+   EINA_DEPRECATED EAPI void         elm_wipercontrol_above_content_set (Evas_Object *obj, Evas_Object *content);
 
    /* AnalogClock */
-   EAPI Evas_Object *elm_analogclock_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI Evas_Object *elm_analogclock_add(Evas_Object *parent);
 
    /* ratingbar */
-   EAPI Evas_Object *elm_ratingbar_add(Evas_Object *parent);
-   EAPI void         elm_ratingbar_rating_set(Evas_Object *obj, int rating);
-   EAPI int          elm_ratingbar_rating_get(Evas_Object *obj);
+   EINA_DEPRECATED EAPI Evas_Object *elm_ratingbar_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI void         elm_ratingbar_rating_set(Evas_Object *obj, int rating);
+   EINA_DEPRECATED EAPI int          elm_ratingbar_rating_get(Evas_Object *obj);
    /* smart callback called:
     * "changed" - when a rating is changed
     */
@@ -2558,13 +2569,13 @@ extern "C" {
     */
 
    /* chronometer */
-   EAPI Evas_Object *elm_chronometer_add(Evas_Object *parent);
-   EAPI void         elm_chronometer_start(Evas_Object *obj);
-   EAPI void         elm_chronometer_stop(Evas_Object *obj);
-   EAPI void         elm_chronometer_time_set(Evas_Object *obj, int hrs, int min, int sec);
-   EAPI void         elm_chronometer_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec);
-   EAPI void         elm_chronometer_format_set(Evas_Object *obj, Eina_Bool format);
-   EAPI void         elm_chronometer_format_get(Evas_Object *obj, Eina_Bool *format);
+   EINA_DEPRECATED EAPI Evas_Object *elm_chronometer_add(Evas_Object *parent);
+   EINA_DEPRECATED EAPI void         elm_chronometer_start(Evas_Object *obj);
+   EINA_DEPRECATED EAPI void         elm_chronometer_stop(Evas_Object *obj);
+   EINA_DEPRECATED EAPI void         elm_chronometer_time_set(Evas_Object *obj, int hrs, int min, int sec);
+   EINA_DEPRECATED EAPI void         elm_chronometer_time_get(const Evas_Object *obj, int *hrs, int *min, int *sec);
+   EINA_DEPRECATED EAPI void         elm_chronometer_format_set(Evas_Object *obj, Eina_Bool format);
+   EINA_DEPRECATED EAPI void         elm_chronometer_format_get(Evas_Object *obj, Eina_Bool *format);
 
    /* dialoguegroup */
    typedef struct _Dialogue_Item Dialogue_Item;
@@ -2654,11 +2665,6 @@ extern "C" {
         ELM_DAYSELECTOR_SAT 
      } Elm_DaySelector_Day;
 
-   typedef struct _Elm_Event_DaySelector_Day
-     {
-        Elm_DaySelector_Day day;
-     } Elm_Event_DaySelector_Day;      
-
    EAPI Evas_Object *elm_dayselector_add(Evas_Object *parent);
    EAPI Eina_Bool    elm_dayselector_check_state_get(Evas_Object *obj, Elm_DaySelector_Day day);
    EAPI void         elm_dayselector_check_state_set(Evas_Object *obj, Elm_DaySelector_Day day, Eina_Bool checked);
@@ -2674,7 +2680,7 @@ extern "C" {
    EAPI Evas_Object *elm_webview_minimap_get(Evas_Object *obj);
    EAPI void         elm_webview_uri_set(Evas_Object *obj, const char *uri);
    EAPI void         elm_webview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
-   EAPI void         elm_webview_mime_callback_set(Evas_Object *obj, const char *mime, Elm_WebView_Mime_Cb func);
+   EAPI void         elm_webview_scheme_callback_set(Evas_Object *obj, const char *scheme, Elm_WebView_Mime_Cb func);
    EAPI void         elm_webview_default_layout_width_set(Evas_Object *obj, int width);
 
    /* NoContents */
index cdcf9cd..a2c5307 100644 (file)
@@ -243,6 +243,12 @@ _entry_unfocused(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNU
    evas_object_smart_callback_call(data, SIG_UNFOCUSED, NULL);
 }
 
+static void
+_entry_maxlength_reached(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+{
+   evas_object_smart_callback_call(data, "maxlength,reached", NULL);
+}
+
 
 /**
  * This adds a scrolled entry to @p parent object.
@@ -300,6 +306,7 @@ elm_scrolled_entry_add(Evas_Object *parent)
    evas_object_smart_callback_add(wd->entry, "longpressed", _entry_longpressed, obj);
    evas_object_smart_callback_add(wd->entry, "focused", _entry_focused, obj);
    evas_object_smart_callback_add(wd->entry, "unfocused", _entry_unfocused, obj);
+   evas_object_smart_callback_add(wd->entry, "maxlength,reached", _entry_maxlength_reached, obj);
 
    _sizing_eval(obj);
 
index 2db9fc6..5f1270f 100644 (file)
@@ -34,6 +34,7 @@ struct _Widget_Data
 {
    Evas_Object *as;            // actionslider
    Evas_Object *icon;          // an icon for a button or a bar
+   Evas_Object *icon_fake;             // an icon for a button or a bar
 
    // setting
    Elm_Actionslider_Magnet_Pos magnet_position;
@@ -76,6 +77,11 @@ _del_hook(Evas_Object *obj)
        evas_object_del(wd->icon);
        wd->icon = NULL;
      }
+   if(wd->icon_fake) 
+     {
+       evas_object_del(wd->icon_fake);
+       wd->icon_fake = NULL;
+     }
    if (wd->text_left) 
      {
        eina_stringshare_del(wd->text_left);
@@ -110,10 +116,16 @@ _theme_hook(Evas_Object *obj)
      {
        edje_object_part_unswallow(wd->as, wd->icon);
      }
+   if (edje_object_part_swallow_get(wd->as, "elm.swallow.space") == NULL) 
+     {
+       edje_object_part_unswallow(wd->as, wd->icon_fake);
+     }
 
    _elm_theme_object_set(obj, wd->as, "actionslider", "base", elm_widget_style_get(obj));
    _elm_theme_object_set(obj, wd->icon, "actionslider", "icon", elm_widget_style_get(obj));
+   _elm_theme_object_set(obj, wd->icon_fake, "actionslider", "icon", elm_widget_style_get(obj));
    edje_object_part_swallow(wd->as, "elm.swallow.icon", wd->icon);
+   edje_object_part_swallow(wd->as, "elm.swallow.space", wd->icon_fake);
    edje_object_part_text_set(wd->as, "elm.text.left", wd->text_left);
    edje_object_part_text_set(wd->as, "elm.text.right", wd->text_right);
    edje_object_part_text_set(wd->as, "elm.text.center", wd->text_center);
@@ -337,6 +349,11 @@ elm_actionslider_add(Evas_Object *parent)
    _elm_theme_object_set(obj, wd->icon, "actionslider", "icon", "default");
    edje_object_part_swallow(wd->as, "elm.swallow.icon", wd->icon);
 
+   wd->icon_fake = edje_object_add(e);
+   evas_object_smart_member_add(wd->icon_fake, obj);
+   _elm_theme_object_set(obj, wd->icon_fake, "actionslider", "icon", "default");
+   edje_object_part_swallow(wd->as, "elm.swallow.space", wd->icon_fake);
+
    // event callbacks
    evas_object_smart_callback_add(obj, "sub-object-del", _sub_del, obj);
    evas_object_event_callback_add(wd->icon, EVAS_CALLBACK_MOUSE_DOWN, _icon_down_cb, obj);
@@ -497,6 +514,7 @@ elm_actionslider_label_set(Evas_Object *obj, Elm_Actionslider_Label_Pos pos, con
             if (data_right) pad_right = atoi(data_right);
 
             evas_object_size_hint_min_set (wd->icon, w + pad_left + pad_right, 0);
+            evas_object_size_hint_min_set (wd->icon_fake, w + pad_left + pad_right, 0);
          }
      }
 
index 88e8d3f..981c187 100644 (file)
@@ -623,7 +623,10 @@ _theme_hook(Evas_Object *obj)
    _elm_theme_object_set(obj, wd->arrow, "ctxpopup", "arrow",
                         elm_widget_style_get(obj));
 
-   elm_object_style_set(wd->scroller, "ctxpopup");
+   if( !strncmp( elm_object_style_get(obj), "default", strlen("default") * sizeof(char) ) )
+          elm_object_style_set(wd->scroller, "ctxpopup");
+   else
+          elm_object_style_set(wd->scroller, elm_object_style_get(obj));
 
    _sizing_eval(obj);
 
@@ -842,8 +845,7 @@ elm_ctxpopup_add(Evas_Object *parent)
    //Background
    wd->bg = edje_object_add(e);
    elm_widget_sub_object_add(obj, wd->bg);
-   _elm_theme_object_set(obj, wd->bg, "ctxpopup", "bg",
-                        elm_widget_style_get(obj));
+   _elm_theme_object_set(obj, wd->bg, "ctxpopup", "bg", "default");
    evas_object_geometry_get(parent, &x, &y, &w, &h);
    evas_object_move(wd->bg, x, y);
    evas_object_resize(wd->bg, w, h);
@@ -853,8 +855,7 @@ elm_ctxpopup_add(Evas_Object *parent)
    //Base
    wd->base = edje_object_add(e);
    elm_widget_sub_object_add(obj, wd->base);
-   _elm_theme_object_set(obj, wd->base, "ctxpopup", "base",
-                        elm_widget_style_get(obj));
+   _elm_theme_object_set(obj, wd->base, "ctxpopup", "base", "default");
 
    //Scroller
    wd->scroller = elm_scroller_add(obj);
@@ -876,8 +877,7 @@ elm_ctxpopup_add(Evas_Object *parent)
    //Arrow
    wd->arrow = edje_object_add(e);
    elm_widget_sub_object_add(obj, wd->arrow);
-   _elm_theme_object_set(obj, wd->arrow, "ctxpopup", "arrow",
-                        elm_widget_style_get(obj));
+   _elm_theme_object_set(obj, wd->arrow, "ctxpopup", "arrow", "default");
 
    wd->arrow_priority[0] = ELM_CTXPOPUP_ARROW_DOWN;
    wd->arrow_priority[1] = ELM_CTXPOPUP_ARROW_RIGHT;
index d777143..c202562 100755 (executable)
@@ -581,23 +581,28 @@ _date_update(Evas_Object *obj)
        sprintf(str, "%d", wd->day);
        elm_entry_entry_set(wd->date[DATE_DAY], str);
 
-       if (wd->hour >= HOUR_12H_MAXIMUM)
-       {
-               wd->pm = EINA_TRUE;
-               edje_object_part_text_set(wd->base, "elm.text.ampm", "PM");
-       }
+       if (!wd->time_mode) //24 mode
+               sprintf(str, "%d", wd->hour);
        else
        {
-               wd->pm = EINA_FALSE;
-               edje_object_part_text_set(wd->base, "elm.text.ampm", "AM");             
-       }
+               if (wd->hour >= HOUR_12H_MAXIMUM)
+               {
+                       wd->pm = EINA_TRUE;
+                       edje_object_part_text_set(wd->base, "elm.text.ampm", "PM");
+               }
+               else
+               {
+                       wd->pm = EINA_FALSE;
+                       edje_object_part_text_set(wd->base, "elm.text.ampm", "AM");             
+               }
 
-       if (wd->time_mode && (wd->hour > HOUR_12H_MAXIMUM))
-               sprintf(str, "%d", wd->hour - HOUR_12H_MAXIMUM);
-       else if (wd->time_mode && (wd->hour == 0))
-               sprintf(str, "%d", HOUR_12H_MAXIMUM);
-       else
-               sprintf(str, "%d", wd->hour);
+               if (wd->hour > HOUR_12H_MAXIMUM)
+                       sprintf(str, "%d", wd->hour - HOUR_12H_MAXIMUM);
+               else if (wd->hour == 0)
+                       sprintf(str, "%d", HOUR_12H_MAXIMUM);
+               else
+                       sprintf(str, "%d", wd->hour);
+       }
        elm_entry_entry_set(wd->time[TIME_HOUR], str);
 
        sprintf(str, "%d", wd->min);
@@ -830,9 +835,37 @@ elm_datefield_time_mode_set(Evas_Object *obj, Eina_Bool mode)
        
        if (!wd) return;
 
-       if (wd->time_mode != mode) {
+       if (wd->time_mode != mode) 
+       {
+               char str[YEAR_MAX_LENGTH+1];
+               
                wd->time_mode = mode;
-               //_update_ampm(obj);
+               if (!wd->time_mode) edje_object_signal_emit(wd->base, "elm,state,mode,24h", "elm");
+               else edje_object_signal_emit(wd->base, "elm,state,mode,12h", "elm");
+
+               if (!wd->time_mode) //24 mode
+                       sprintf(str, "%d", wd->hour);
+               else
+               {
+                       if (wd->hour >= HOUR_12H_MAXIMUM)
+                       {
+                               wd->pm = EINA_TRUE;
+                               edje_object_part_text_set(wd->base, "elm.text.ampm", "PM");
+                       }
+                       else
+                       {
+                               wd->pm = EINA_FALSE;
+                               edje_object_part_text_set(wd->base, "elm.text.ampm", "AM");             
+                       }
+
+                       if (wd->hour > HOUR_12H_MAXIMUM)
+                               sprintf(str, "%d", wd->hour - HOUR_12H_MAXIMUM);
+                       else if (wd->hour == 0)
+                               sprintf(str, "%d", HOUR_12H_MAXIMUM);
+                       else
+                               sprintf(str, "%d", wd->hour);
+               }
+               elm_entry_entry_set(wd->time[TIME_HOUR], str);
        }
 }
 
index 8191e58..73e49f7 100644 (file)
@@ -58,12 +58,12 @@ _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info)
 static void 
 _check_clicked(void *data, Evas_Object *obj, void *event_info)
 {
-       static Elm_Event_DaySelector_Day day;
+       static Elm_DaySelector_Day day;
        Widget_Data* wd = (Widget_Data*) elm_widget_data_get(data);
        int idx;
        for(idx = 0; idx< 7; ++idx) {
                if(obj==wd->check[idx]) {
-                       day.day = idx;
+                       day = idx;
                        evas_object_smart_callback_call(data, "dayselector,changed", (void *) &day);
                        return ;
                }
index a008158..e936faf 100644 (file)
@@ -1741,7 +1741,8 @@ _ellipsis_entry_to_width(Evas_Object *obj)
 static int _textinput_control_function(void *data,void *input_data)
 {
    /*calculate character count*/
-   Widget_Data *wd = elm_widget_data_get(data);
+   Evas_Object *entry = (Evas_Object *)data;
+   Widget_Data *wd = elm_widget_data_get((Evas_Object *)data);
    char buf[10]="\0";
    size_t byte_len;
    size_t insert_text_len=0;
@@ -1760,12 +1761,12 @@ static int _textinput_control_function(void *data,void *input_data)
            insert_text_len = strlen(insert_text);
            if(remain_bytes<insert_text_len)
              {
-               evas_object_smart_callback_call(input_data, "maxlength,reached", NULL);
+               evas_object_smart_callback_call(entry, "maxlength,reached", NULL);
                return EINA_TRUE;
              }
            if(byte_len>=wd->max_no_of_bytes)
              {
-               evas_object_smart_callback_call(input_data, "maxlength,reached", NULL);
+               evas_object_smart_callback_call(entry, "maxlength,reached", NULL);
                return EINA_TRUE;
              }
          }
index ef6370b..ee144f6 100644 (file)
@@ -922,6 +922,8 @@ _scr_scroll(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__
 EAPI Evas_Object *
 elm_gengrid_add(Evas_Object *parent)
 {
+   if (!parent) return NULL;
+   
    Evas_Object *obj;
    Evas *e;
    Widget_Data *wd;
@@ -1077,6 +1079,7 @@ elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y)
 {
     ELM_CHECK_WIDTYPE(obj, widtype);
     Widget_Data *wd = elm_widget_data_get(obj);
+    if (!wd) return;
     if (align_x) *align_x = wd->align_x;
     if (align_y) *align_y = wd->align_y;
 }
index e91ce04..1a373ba 100755 (executable)
@@ -274,6 +274,7 @@ struct _Widget_Data
    int max_items_per_block;
    double longpress_timeout;
    int edit_mode;
+   int select_all_minh;
    Eina_Bool animate_edit_controls :1;
    Edit_Data *ed;
 
@@ -1542,8 +1543,13 @@ _item_realize(Elm_Genlist_Item *it, int in, int calc)
    it->want_unrealize = EINA_FALSE;
    if(it->group_item && !it->group_item->realized)
      _groupitem_realize(it->group_item);
-   if( ELM_GENLIST_EDIT_MODE_NONE != it->wd->edit_mode )
-     _edit_controls_eval(it);
+   if( ELM_GENLIST_EDIT_MODE_NONE != it->wd->edit_mode ) 
+   {
+       Evas_Object *icon;
+       EINA_LIST_FREE(it->edit_icon_objs, icon)
+       evas_object_del(icon);
+       _edit_controls_eval(it);
+   }
 }
 
 static void
@@ -1724,7 +1730,7 @@ _hide_delete_confirm_object (void *data, Evas_Object *obj, const char *emission,
 static void
 _remove_item_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
 {
-  const char *del_icon_part, *del_conf_style;
+  const char *del_conf_style;
   Elm_Genlist_Item *it = data;
   if(_edit_mode_reset( it->wd ))
      return;
@@ -1848,7 +1854,6 @@ static void
 _reorder_mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *event_info)
 {
   Elm_Genlist_Item *it = data;
-  Evas_Event_Mouse_Up *ev = event_info;
   
   Item_Block *itb;
    EINA_INLIST_FOREACH(it->wd->blocks, itb)
@@ -1950,8 +1955,6 @@ _select_all_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj, void *even
    Widget_Data *wd = it->wd;
    if (!wd) return;
 
-   Eina_List *realized_list = elm_genlist_realized_items_get(wd->obj);
-
        if(!wd->selct_all) 
                edje_object_signal_emit(it->base, "elm,state,del_confirm", "elm");
        else
@@ -2010,6 +2013,8 @@ _edit_controls_eval( Elm_Genlist_Item *it )
     it->pad_left = 0;
     it->pad_right = 0;
     Evas_Object *icon;
+    char buf[1024];
+
     if( it->wd->edit_mode == ELM_GENLIST_EDIT_MODE_NONE && !it->edit_obj )
       return;
 
@@ -2028,7 +2033,21 @@ _edit_controls_eval( Elm_Genlist_Item *it )
               _elm_config->scale);
         evas_object_smart_member_add(it->edit_obj, it->wd->pan_smart);
         elm_widget_sub_object_add(it->wd->obj, it->edit_obj);
-        _elm_theme_object_set(it->wd->obj, it->edit_obj, "genlist", "item/edit_control", elm_widget_style_get(it->wd->obj));
+        if (it->flags & ELM_GENLIST_ITEM_SUBITEMS) strncpy(buf, "tree", sizeof(buf));
+        else strncpy(buf, "item", sizeof(buf));
+        if (it->wd->compress) strncat(buf, "_compress", sizeof(buf) - strlen(buf));
+        // if (in & 0x1) strncat(buf, "_odd", sizeof(buf) - strlen(buf));
+        strncat(buf, "/", sizeof(buf) - strlen(buf));
+        
+        if(it->wd->ed->ec->item_style && strcmp(it->wd->ed->ec->item_style, "default")) 
+          {
+             strncat(buf, it->wd->ed->ec->item_style, sizeof(buf) - strlen(buf));
+             _elm_theme_object_set(it->wd->obj, it->edit_obj, "genlist", buf, elm_widget_style_get(it->wd->obj));
+          }
+        else
+          {
+             _elm_theme_object_set(it->wd->obj, it->edit_obj, "genlist", "item/edit_control", elm_widget_style_get(it->wd->obj));
+          }
 
         edje_object_signal_callback_add(it->edit_obj, "elm,action,edit,reset",
               "elm", _edit_mode_reset, it);
@@ -2066,13 +2085,18 @@ _edit_controls_eval( Elm_Genlist_Item *it )
         else
           edje_object_signal_emit(it->edit_obj, "elm,state,del,enable", "elm");
 
+        edje_object_signal_callback_del(it->edit_obj, "elm,action,item,delete",
+              "elm", _remove_item_cb );
+        edje_object_signal_callback_del(it->edit_obj, "elm,action,hide,del_confirm",
+              "elm", _hide_delete_confirm_object );
+    
         edje_object_signal_callback_add(it->edit_obj, "elm,action,item,delete",
               "elm", _remove_item_cb, it);
 
         edje_object_signal_callback_add(it->edit_obj, "elm,action,hide,del_confirm",
               "elm", _hide_delete_confirm_object, it );
         it->pad_left += pad;
-    evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
+        evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
                    _reorder_mouse_down, it);
       }
     else
@@ -2099,6 +2123,13 @@ _edit_controls_eval( Elm_Genlist_Item *it )
           {
              reorder_icon = edje_object_part_object_get(it->edit_obj, reorder_part );
 
+             evas_object_event_callback_del(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
+                   _reorder_mouse_down);
+             evas_object_event_callback_del(it->edit_obj, EVAS_CALLBACK_MOUSE_UP,
+                   _reorder_mouse_up);
+             evas_object_event_callback_del(it->edit_obj, EVAS_CALLBACK_MOUSE_MOVE,
+                   _reorder_mouse_move);
+         
              evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_DOWN,
                    _reorder_mouse_down, it);
              evas_object_event_callback_add(it->edit_obj, EVAS_CALLBACK_MOUSE_UP,
@@ -2243,16 +2274,21 @@ _item_block_position(Item_Block *itb, int in)
    evas_object_geometry_get(itb->wd->pan_smart, &ox, &oy, &ow, &oh);
    evas_output_viewport_get(evas_object_evas_get(itb->wd->obj), &cvx, &cvy, &cvw, &cvh);
 
-       if(itb->wd->select_all_item) {
-               select_all_item = itb->wd->select_all_item;
+   if(itb->wd->select_all_item) 
+   {
+       select_all_item = itb->wd->select_all_item;
                
-        evas_object_resize(select_all_item->base, itb->w,  select_all_item->h);
-               evas_object_move(select_all_item->base, 0, oy);
-               evas_object_raise(select_all_item->base);
-               evas_object_show(select_all_item->base);
-
-           y = select_all_item->h;
+       evas_object_resize(select_all_item->base, itb->w,  select_all_item->h);  
+       evas_object_move(select_all_item->base, 0, oy);
+       evas_object_raise(select_all_item->base);
+       evas_object_show(select_all_item->base);
+   
+       if(itb->wd->select_all_minh != itb->wd->minh) 
+       {
+            itb->wd->minh += select_all_item->h;
        }       
+       y = select_all_item->h;
+   }
 
    EINA_LIST_FOREACH(itb->items, l, it)
      {
@@ -4772,7 +4808,10 @@ elm_genlist_edit_mode_set(Evas_Object *obj, int emode, Elm_Genlist_Edit_Class *e
 
    if (wd->edit_mode & ELM_GENLIST_EDIT_MODE_SELECTALL)
      {
-       itc.item_style = "select_all";
+      if(edit_class->select_all_item_style && strcmp(edit_class->select_all_item_style, "default"))
+         itc.item_style = edit_class->select_all_item_style;
+      else
+                       itc.item_style = "select_all";
        itc.func.label_get = NULL;
        itc.func.icon_get = NULL;
        itc.func.del = NULL;
@@ -4790,7 +4829,7 @@ elm_genlist_edit_mode_set(Evas_Object *obj, int emode, Elm_Genlist_Edit_Class *e
        wd->select_all_item->selected = 0;
        wd->select_all_item->before = 1;
        wd->select_all_item->block = NULL;
-
+       wd->select_all_minh = wd->minh + wd->select_all_item->h;
      }
    else
      {
@@ -4834,22 +4873,32 @@ elm_genlist_item_expanded_depth_get(Elm_Genlist_Item *it)
 EAPI void
 elm_genlist_edit_selected_items_del(Evas_Object *obj)
 {
-   Elm_Genlist_Item *it;
-   Eina_List *l, *realized_list;
-   Item_Block *itb;
+  Elm_Genlist_Item *it;
+   Eina_List *l;
+   Item_Block *itb = NULL;
 
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-
+   if(!wd->blocks) return;
+   
    EINA_INLIST_FOREACH(wd->blocks, itb)
      {
-       if (itb->realized)
+       if(!wd->blocks) break;
+       
+       if (itb && itb->realized)
          {
             EINA_LIST_FOREACH(itb->items, l, it)
               {
                  if (it->delete_check)
-                   elm_genlist_item_del( it );
+                   {
+             if(!wd->selct_all) 
+             {
+                       itb->wd->minh -= it->h;
+                       itb->wd->select_all_minh -= it->h;
+             }
+                      elm_genlist_item_del( it );
+                   }
               }
          }
      }
@@ -4935,6 +4984,7 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
    Evas_Object *editfield;
    Evas_Object *entry;
    int edit_field_cnt = 0;
+   Evas_Object *icon;   
 
    if (it->wd->edit_mode == ELM_GENLIST_EDIT_MODE_NONE)
      {
@@ -4988,6 +5038,8 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
                            evas_object_del(it->edit_obj);
                            it->edit_obj = NULL;
                         }
+               EINA_LIST_FREE(it->edit_icon_objs, icon)
+                                  evas_object_del(icon);
                    }
               }
          }
@@ -5015,6 +5067,8 @@ elm_genlist_item_rename_mode_set(Elm_Genlist_Item *it, int emode)
                  it->renamed = EINA_TRUE;
                  swallow_part_cnt = 0;
 
+            EINA_LIST_FREE(it->edit_icon_objs, icon)
+               evas_object_del(icon);
                  Eina_List *rename = _elm_stringlist_get(edje_object_data_get(it->edit_obj, "rename"));
                  EINA_LIST_FOREACH(rename, l, rename_swallow_part)
                    {
index ba2cdbf..1a48379 100755 (executable)
@@ -104,14 +104,28 @@ _sizing_eval(Evas_Object *obj)
 {\r
        Widget_Data *wd = elm_widget_data_get(obj);\r
        Evas_Coord minw = -1, minh = -1;\r
-       Evas_Coord w, h;\r
+       //Evas_Coord w, h;\r
        if (!wd) return;\r
 \r
-       edje_object_size_min_restricted_calc(wd->base, &minw, &minh, minw, minh);\r
-       evas_object_size_hint_min_get(obj, &w, &h);\r
-       if (w > minw) minw = w;\r
-       if (h > minh) minh = h;\r
+       //edje_object_size_min_restricted_calc(wd->base, &minw, &minh, minw, minh);\r
+       //evas_object_size_hint_min_get(obj, &w, &h);\r
+       \r
+       evas_object_size_hint_min_get(wd->box, &minw, &minh);\r
        evas_object_size_hint_min_set(obj, minw, minh);\r
+\r
+       //if (w > minw) minw = w;\r
+       //if (h > minh) minh = h;\r
+       //evas_object_size_hint_min_set(obj, minw, minh);\r
+}\r
+\r
+static void \r
+_changed_size_hint_cb(void *data, Evas *evas, Evas_Object *obj, void *event)\r
+{\r
+       Evas_Object *eo = (Evas_Object *)data;\r
+       Widget_Data *wd = elm_widget_data_get(data);\r
+       if (!wd) return;\r
+\r
+       _sizing_eval(eo);\r
 }\r
 \r
 static void \r
@@ -130,7 +144,10 @@ _event_init(Evas_Object *obj)
        if(!wd || !wd->base)    return;\r
 \r
        if(wd->box)\r
+       {\r
                evas_object_event_callback_add(wd->box, EVAS_CALLBACK_RESIZE, _resize_cb, obj);\r
+               evas_object_event_callback_add(wd->box, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hint_cb, obj);\r
+       }\r
 }\r
 \r
 static void\r
@@ -235,7 +252,7 @@ _del_button_item(Elm_Multibuttonentry_Item *item)
                if (_item == item) {\r
                        wd->items = eina_list_remove(wd->items, _item);\r
                        elm_box_unpack(wd->box, _item->button);\r
-                       _sizing_eval(obj);\r
+                       //_sizing_eval(obj);\r
                        _del_button_obj(obj, _item->button);\r
                        free(_item);\r
                        if(wd->current == l)    \r
@@ -339,7 +356,7 @@ _add_button_item(Evas_Object *obj, const char *str, Multibuttonentry_Pos pos, co
 \r
        evas_object_smart_callback_call(obj, "added", item);\r
 \r
-       _sizing_eval(obj);\r
+       //_sizing_eval(obj);\r
 \r
        return item;\r
 }\r
@@ -436,7 +453,7 @@ elm_multibuttonentry_add(Evas_Object *parent)
        \r
        _view_init(obj);\r
        _event_init(obj);\r
-       _sizing_eval(obj);\r
+       //_sizing_eval(obj);\r
 \r
        return obj;\r
 }\r
index 72ebbda..9dbd3cb 100644 (file)
@@ -30,6 +30,7 @@ struct _Widget_Data
        Eina_List *stack;
        Evas_Object *base;
        Evas_Object *pager;
+       Eina_Bool popped : 1;
  };
 
 struct _Item
@@ -226,14 +227,20 @@ _transition_complete_cb(void *data)
        {
        Transit_Cb_Data *cb = data;
        if (!cb) return;
-
+       Evas_Object *navi_bar = NULL;
+       Evas_Object *content = NULL;
        Widget_Data *wd = NULL;
        Item *prev_it = cb->prev_it;
        Item *it = cb->it;
 
-       if (prev_it) wd = elm_widget_data_get(prev_it->obj);
-       else if (it) wd = elm_widget_data_get(it->obj);
-
+       if (prev_it) {
+                        navi_bar = prev_it->obj;
+               }
+       else if (it){
+                       navi_bar = it->obj;
+               }
+       
+       wd = elm_widget_data_get(navi_bar);
        if (cb->pop && prev_it)
        {
                Eina_List *ll;
@@ -305,18 +312,49 @@ _transition_complete_cb(void *data)
                {
                        edje_object_signal_emit(wd->base, "elm,state,extend,title", "elm");
                }
+               content = it->content;
        }
        edje_object_message_signal_process(wd->base);
-       evas_object_smart_callback_call(it->obj, "updated", it->content);
+       evas_object_smart_callback_call(navi_bar, "updated", content);
 }
 
 static void 
 _back_button_clicked(void *data, Evas_Object *obj, void *event_info)
 {
        Item *it = data;        
-       elm_navigationbar_pop(it->obj);
+       Widget_Data *wd =  elm_widget_data_get(it->obj);
+       if(wd->popped)
+               elm_navigationbar_pop(it->obj);
+       wd->popped = EINA_FALSE;
+}
+
+static void 
+_hide_finished(void *data, Evas_Object *obj, void *event_info)
+{
+       Evas_Object *navi_bar = data;   
+       Widget_Data *wd =  elm_widget_data_get(navi_bar);
+       wd->popped = EINA_TRUE;
+}
+
+
+static void
+_sub_del(void *data, Evas_Object *obj __UNUSED__, void *event_info)
+{
+   Widget_Data *wd = elm_widget_data_get(data);
+   Evas_Object *sub = event_info;
+   Eina_List *l;
+   Item *it;
+   if (!wd) return;
+   
+       if (wd->pager == sub)
+         {
+            wd->stack = eina_list_remove_list(wd->stack, l);
+            evas_object_del(wd->base);
+            return;
+         }
 }
 
+
 static int
 _set_button_width(Evas_Object *obj)
 {
@@ -451,7 +489,9 @@ elm_navigationbar_add(Evas_Object *parent)
 
        wd->pager = elm_pager_add(obj);
        elm_widget_sub_object_add(obj, wd->pager);
-       edje_object_part_swallow(wd->base, "elm.swallow.content", wd->pager);   
+       edje_object_part_swallow(wd->base, "elm.swallow.content", wd->pager);
+       evas_object_smart_callback_add(wd->pager, "hide,finished", _hide_finished, obj);        
+       evas_object_smart_callback_add(obj, "sub-object-del", _sub_del, obj);
 
        evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, _resize, NULL);       
 
@@ -602,13 +642,10 @@ elm_navigationbar_pop(Evas_Object *obj)
        {
                prev_it = ll->data;
                ll = ll->prev;
-               while (ll) 
-               {
-                       it = ll->data;
-                       if (it->obj) break;  
-                       it = NULL;
-                       ll = ll->prev;
-               }
+               if(ll)
+                       {
+                               it = ll->data;
+                       }
        }
        
        //unswallow items and start trasition
@@ -635,6 +672,11 @@ elm_navigationbar_pop(Evas_Object *obj)
        _transition_complete_cb(cb);
        //pop content from pager
        elm_pager_content_pop(wd->pager);
+       if(prev_it && !it)
+               {
+                       printf("\n\nconditions met\n");
+                       evas_object_del(wd->pager);
+               }
        free(cb);
 }
        
@@ -726,8 +768,12 @@ elm_navigationbar_title_label_set(Evas_Object *obj,
        {
                if (it->content == content) 
                {
-                  eina_stringshare_replace(&it->title, title);
-                       edje_object_part_text_set(wd->base, "elm.text", title);
+                       if(!title)
+                               {
+                                       edje_object_signal_emit(wd->base, "elm,state,retract,title", "elm");
+                               }                       
+                       eina_stringshare_replace(&it->title, title);
+                       edje_object_part_text_set(wd->base, "elm.text", title);
                        _item_sizing_eval(it);
                        break;
                }
@@ -818,6 +864,7 @@ elm_navigationbar_title_object_add(Evas_Object *obj,
                        }
                }
        }
+       _item_sizing_eval(it);
 }
 
 /**
index 473c795..4c47da6 100755 (executable)
@@ -347,6 +347,12 @@ elm_pager_content_pop(Evas_Object *obj)
          }
      }
 }
+static void
+_del_job(void *data)
+{
+   Evas_Object *obj = data;
+   evas_object_del(obj);
+}
 
 /**
  * Pop to the object that is on the stack
@@ -373,25 +379,21 @@ elm_pager_to_content_pop(Evas_Object *obj, Evas_Object *content)
    ll = eina_list_last(wd->stack);
    if (ll)
      {
-       EINA_LIST_FOREACH(wd->stack, ll, it)
-         {
-           if (it->content == content)
-             {
-                ll = eina_list_last(wd->stack);
-                while (ll = ll->prev)
-                {
-                  if (ll->data == it) break;
-                  else 
-                  {
-                    Item *itdel = ll->data;
-                    evas_object_del(itdel->content);
-                  }
-                }
-                elm_pager_content_promote(obj, content);   
-                return;
-             }
-          }
+       while(ll)
+                       {
+                               it = ll->data;
+                               if(it->content != content)
+                                       {
+                                               wd->stack = eina_list_remove_list(wd->stack, ll);
+                                               ecore_job_add(_del_job, it->content);
+                                       }
+                               else
+                                       break;
+                               
+                               ll = ll->prev;
+                       }
       }
+   _eval_top(it->obj);
 }
 
 /**
index 16ab912..6545367 100644 (file)
@@ -132,27 +132,23 @@ _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
    Elm_Segment_Item *item = (Elm_Segment_Item *) data;
    Widget_Data *wd = elm_widget_data_get(item->obj);
-   Evas_Event_Mouse_Up * ev = event_info;
-   Evas_Coord x, y, w, h;
-
    if (!wd) return;
 
-   evas_object_geometry_get(obj, &x, &y, &w, &h);
-   if(ev->output.x > x && ev->output.x < x+w && ev->output.y > y && ev->output.y < y+h && wd->selected == EINA_FALSE)
-     {
-       _signal_segment_on(item);
-     }
-   else
+   if (item->segment_id == wd->cur_seg_id)
      {
-         wd->selected = EINA_FALSE;
-         return;
+       wd->selected = EINA_TRUE;
+       return;
      }
+    _signal_segment_on(item);
+     wd->selected = EINA_FALSE;
+     return;
 
-  /if(wd->longpressed == EINA_FALSE)
+  /*if(wd->longpressed == EINA_FALSE)
      {
        edje_object_signal_emit(item->base, "elm,action,unfocus", "elm");
        edje_object_signal_emit(item->base, "elm,state,text,visible", "elm");
-     }
+       edje_object_signal_emit(item->base, "elm,state,text,change", "elm");
+      }*/
   /* if (item->long_timer)
      {
        ecore_timer_del(item->long_timer);
@@ -167,20 +163,10 @@ _mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
    Widget_Data *wd = elm_widget_data_get(item->obj);
 
    if (!wd) return;
-   //wd->longpressed = EINA_FALSE;
-
-   if (item->segment_id == wd->cur_seg_id)
-     {
-        wd->selected = EINA_TRUE;
-        return;
-     }
 
    edje_object_signal_emit(item->base, "elm,action,focus", "elm");
-   edje_object_signal_emit(item->base, "elm,state,text,visible", "elm");
-
-   _signal_segment_on(item);
 
-/*   if (item->long_timer) ecore_timer_del(item->long_timer);
+/* if (item->long_timer) ecore_timer_del(item->long_timer);
    item->long_timer = ecore_timer_add(0.3, _signal_segment_on, item);*/
 }
 
index ad52e0d..05aea8f 100644 (file)
@@ -46,6 +46,16 @@ _parent_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
        _sizing_eval(data);\r
 }\r
 \r
+static void \r
+_drag_cb(void *data, Evas_Object *obj, const char *emission, const char *source)\r
+{\r
+       static Evas_Coord_Point pt;\r
+       Widget_Data *wd = elm_widget_data_get(data);\r
+       edje_object_part_drag_value_get(wd->base, "elm.dragable.handler", &pt.x, &pt.y);\r
+       evas_object_smart_callback_call(data, "slidingdrawer,drag", (void*) &pt);\r
+}\r
+\r
+\r
 static void\r
 _sizing_eval(Evas_Object *obj)\r
 {\r
@@ -59,6 +69,8 @@ _sizing_eval(Evas_Object *obj)
        evas_object_move(obj, x, y);\r
        evas_object_resize(obj, w, h);\r
 \r
+       part = edje_object_part_object_get(wd->base, "elm.dragable.handler");\r
+       \r
        if((wd->pos == ELM_SLIDINGDRAWER_TOP) || (wd->pos == ELM_SLIDINGDRAWER_BOTTOM)) {\r
                edje_object_size_min_get(part, NULL, &h);\r
        }else {\r
@@ -66,7 +78,6 @@ _sizing_eval(Evas_Object *obj)
        }\r
 \r
        evas_object_size_hint_min_set(wd->handler, w, h);\r
-\r
 }\r
 \r
 EAPI Evas_Object *\r
@@ -79,7 +90,7 @@ elm_slidingdrawer_content_unset(Evas_Object *obj)
        wd = elm_widget_data_get(obj);\r
 \r
        content = edje_object_part_swallow_get(wd->base, "elm.swallow.content");\r
-       if(!content) return;\r
+       if(!content) return NULL;\r
        edje_object_part_unswallow(wd->base, content);\r
        elm_widget_sub_object_del(obj, content);\r
        return content;\r
@@ -146,7 +157,6 @@ EAPI Evas_Object *
 elm_slidingdrawer_add(Evas_Object *parent)\r
 {\r
        Evas_Object *obj;\r
-       Evas_Object *handler;\r
        Evas *e;\r
        Widget_Data *wd;\r
 \r
@@ -173,9 +183,10 @@ elm_slidingdrawer_add(Evas_Object *parent)
        //base\r
        wd->base = edje_object_add(e);\r
        _elm_theme_object_set(obj, wd->base, "slidingdrawer", "bottom", "default");\r
+       edje_object_signal_callback_add(wd->base, "drag", "*", _drag_cb, obj);\r
        elm_widget_sub_object_add(obj, wd->base);\r
        elm_widget_resize_object_set(obj, wd->base);\r
-\r
+       \r
        //dragable_rect\r
        wd->dragable_rect = evas_object_rectangle_add(e);\r
        edje_object_part_swallow(wd->base, "elm.swallow.dragable_rect", wd->dragable_rect);\r
@@ -184,9 +195,9 @@ elm_slidingdrawer_add(Evas_Object *parent)
        wd->handler = evas_object_rectangle_add(e);\r
        evas_object_color_set(wd->handler, 0, 0, 0, 0);\r
        edje_object_part_swallow(wd->base, "elm.dragable.handler", wd->handler);\r
-\r
+       \r
        evas_object_event_callback_add(parent, EVAS_CALLBACK_RESIZE, _parent_resize, obj);\r
-\r
+               \r
        _sizing_eval(obj);\r
 \r
        return obj;\r
index 879d485..9e8a73f 100755 (executable)
 \r
 \r
 #define MAX_ITEM_NUM           (9)\r
-#define MAX_MOVE_INTERVAL      (1.8)\r
+#define MAX_MOVE_INTERVAL      (0.2)\r
 #define ELM_MAX(v1, v2)        (((v1) > (v2)) ? (v1) : (v2))\r
 #define ROT_RIGHT                      (5)\r
 #define ROT_LEFT                       (-5)\r
-#define SHOW_ITEM_NUM          3                       \r
+#define SHOW_ITEM_NUM          (3)                     \r
 \r
 \r
 struct _Stackedicon_Item {\r
@@ -43,7 +43,6 @@ struct _Widget_Data {
        Ecore_Animator *animator;               \r
        Eina_List *list;\r
        Evas_Coord x, y, w, h;\r
-       Eina_Bool on_expanded : 1;\r
        Eina_Bool visible: 1;\r
        Eina_Bool move_start: 1;\r
 };\r
@@ -62,10 +61,11 @@ static void _icon_mouse_move_cb(void *data, Evas *e, Evas_Object *obj, void *eve
 static void _icon_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);\r
 static void _icon_move_to_zero(Evas_Object *obj);\r
 static int _icon_move_to_zero_cb(Evas_Object *obj);\r
-static void _icon_move_map(void *data, int flag, int interval_x, int interval_y);\r
+static void _icon_move_map(void *data, int interval_x, int interval_y);\r
 static void _icon_map_pos(void *data, Evas_Coord x, Evas_Coord y);\r
 static void _del_image(void *data);\r
 static void _del_all_image(void *data);\r
+static void _calc_item_size(int w, int h, int iw, int ih, int *res_w, int *res_h);\r
 static void _add_image(Evas_Object *obj, void *data);\r
 static void _show_all_image(Evas_Object *obj);\r
 static void _hide_all_image(Evas_Object *obj);\r
@@ -237,10 +237,10 @@ static void _icon_mouse_move_cb(void *data, Evas *e, Evas_Object *obj, void *eve
                it->mmx = ev->cur.output.x;\r
                it->mmy = ev->cur.output.y;\r
 \r
-               wd->interval_x = 1.5*(it->mmx - it->mdx);\r
-               wd->interval_y = 1.5*(it->mmy - it->mdy);               \r
+               wd->interval_x = it->mmx - it->mdx;\r
+               wd->interval_y = it->mmy - it->mdy;     \r
 \r
-               _icon_move_map(wd, 1, wd->x + wd->interval_x, wd->y +  wd->interval_y);\r
+               _icon_move_map(wd, wd->x + wd->interval_x, wd->y +  wd->interval_y);\r
        }       \r
 }\r
 \r
@@ -254,17 +254,14 @@ static void _icon_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event
 \r
        interval = sqrt(wd->interval_x*wd->interval_x + wd->interval_y*wd->interval_y);\r
        \r
-       if(((double)(interval/it->h) > MAX_MOVE_INTERVAL) && (wd->on_expanded == EINA_FALSE)){\r
-               wd->on_expanded = EINA_TRUE;\r
+       if(((double)(interval/it->h) > MAX_MOVE_INTERVAL)){\r
                wd->interval_x = 0;\r
                wd->interval_y = 0;\r
                \r
-               _icon_move_map(wd, 0, wd->x, wd->y);            \r
-               evas_object_smart_callback_call(it->parent, "expanded", NULL);  \r
+               _icon_move_map(wd, wd->x, wd->y);               \r
                _hide_hidden_image(it->parent);\r
-\r
+               evas_object_smart_callback_call(it->parent, "expanded", NULL);  \r
        }else{          \r
-               wd->on_expanded= EINA_FALSE;    \r
                it->on_hold = EINA_FALSE;       \r
                it->mdx = 0;\r
                it->mdy = 0;\r
@@ -310,10 +307,11 @@ static void _icon_move_to_zero(Evas_Object *obj)
                wd->animator = NULL;\r
                wd->interval_x = 0;\r
                wd->interval_y = 0;             \r
-               _icon_move_map(wd, 0, wd->x, wd->y);\r
+               _icon_move_map(wd, wd->x, wd->y);\r
                _hide_hidden_image(obj);\r
+               evas_object_smart_callback_call(obj, "clicked", NULL);\r
        }else{  \r
-               _icon_move_map(wd, 0, wd->x + wd->interval_x - x, wd->y + wd->interval_y - y);\r
+               _icon_move_map(wd, wd->x + wd->interval_x - x, wd->y + wd->interval_y - y);\r
        }\r
 }\r
 \r
@@ -324,7 +322,7 @@ static int _icon_move_to_zero_cb(Evas_Object *obj)
        return EXIT_FAILURE;\r
 }\r
 \r
-static void _icon_move_map(void *data, int flag, int interval_x, int interval_y)\r
+static void _icon_move_map(void *data, int interval_x, int interval_y)\r
 {\r
        Widget_Data *wd = (Widget_Data *)data;\r
        int i = 0;\r
@@ -367,13 +365,34 @@ static void _icon_map_pos(void *data, Evas_Coord x, Evas_Coord y)
        evas_map_free(m);       \r
 }\r
 \r
+static void _calc_item_size(int w, int h, int iw, int ih, int *res_w, int *res_h)\r
+{\r
+       if(iw>ih){\r
+               if(w*ih/iw > h){\r
+                       *res_w = h*iw/ih;\r
+                       *res_h = h;                                             \r
+               }else{\r
+                       *res_w = w;\r
+                       *res_h = w*ih/iw;                                               \r
+               }               \r
+       }else{\r
+               if(h*iw/ih > w){\r
+                       *res_w = w;\r
+                       *res_h = w*h/(h*iw/ih);         \r
+               }else{\r
+                       *res_w = h*iw/ih;\r
+                       *res_h = h;                             \r
+               }\r
+       }\r
+}\r
+\r
 static void _add_image(Evas_Object *obj, void *data)\r
 {\r
        Widget_Data *wd = elm_widget_data_get(obj);\r
        Evas_Object *ly = NULL;\r
        Evas_Object *ic = NULL;\r
        Evas_Object *pad = NULL;        \r
-       int w, h;\r
+       int iw, ih;\r
        if (!wd) return;\r
 \r
        Elm_Stackedicon_Item *it = (Elm_Stackedicon_Item *)data;\r
@@ -387,41 +406,14 @@ static void _add_image(Evas_Object *obj, void *data)
        ic = evas_object_image_add(evas_object_evas_get(obj));\r
        evas_object_image_load_size_set(ic, wd->w/2, wd->h/2);\r
        evas_object_image_file_set(ic, it->path, NULL);\r
-       evas_object_image_size_get(ic, &w, &h);\r
-\r
-       if(w>h){\r
-               if((wd->w -2)*h/w > wd->h -2){\r
-                       evas_object_image_fill_set(ic, 0, 0, (wd->h -2)*w/h, wd->h -2);\r
-                       evas_object_size_hint_min_set(ly, (wd->h -2)*w/h, wd->h -2);\r
-                       evas_object_resize(ly, (wd->h -2)*w/h, wd->h -2);       \r
-\r
-                       it->w = (wd->h -2)*w/h;\r
-                       it->h = wd->h -2;                       \r
-               }else{\r
-                       evas_object_image_fill_set(ic, 0, 0, wd->w -2, (wd->w -2)*h/w);\r
-                       evas_object_size_hint_min_set(ly, wd->w-2, (wd->w -2)*h/w);\r
-                       evas_object_resize(ly, wd->w-2, (wd->w -2)*h/w);        \r
+       evas_object_image_size_get(ic, &iw, &ih);\r
 \r
-                       it->w = wd->w-2;\r
-                       it->h = (wd->w -2)*h/w;                                         \r
-               }               \r
-       }else{\r
-               if((wd->h -2)*w/h > wd->w -2){\r
-                       evas_object_image_fill_set(ic, 0, 0, wd->w -2, (wd->w -2)*(wd->h -2)/((wd->h -2)*w/h));\r
-                       evas_object_size_hint_min_set(ly, wd->w -2, (wd->w -2)*(wd->h -2)/((wd->h -2)*w/h));\r
-                       evas_object_resize(ly, wd->w -2, (wd->w -2)*(wd->h -2)/((wd->h -2)*w/h));\r
+       _calc_item_size(wd->w - 2, wd->h - 2, iw, ih, &it->w, &it->h);\r
 \r
-                       it->w = wd->w-2;\r
-                       it->h = (wd->w -2)*(wd->h -2)/((wd->h -2)*w/h);                         \r
-               }else{\r
-                       evas_object_image_fill_set(ic, 0, 0, (wd->h -2)*w/h, wd->h -2);\r
-                       evas_object_size_hint_min_set(ly, (wd->h -2)*w/h, wd->h -2);\r
-                       evas_object_resize(ly, (wd->h -2)*w/h, wd->h -2);       \r
+       evas_object_image_fill_set(ic, 0, 0, it->w, it->h);\r
+       evas_object_size_hint_min_set(ly, it->w, it->h);\r
+       evas_object_resize(ly, it->w, it->h);\r
 \r
-                       it->w = (wd->h -2)*w/h;\r
-                       it->h = wd->h -2;                               \r
-               }\r
-       }\r
        evas_object_image_filled_set(ic, 1);\r
        edje_object_part_swallow(ly, "contents", ic);\r
        \r
@@ -637,7 +629,6 @@ elm_stackedicon_add(Evas_Object *parent)
        evas_object_size_hint_weight_set(wd->bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\r
        wd->w = 1;\r
        wd->h = 1;\r
-       wd->on_expanded = EINA_FALSE;\r
 \r
        wd->clip = evas_object_rectangle_add(e);\r
        elm_widget_sub_object_add(obj, wd->clip);\r
index 1b759e1..620a809 100644 (file)
@@ -209,23 +209,23 @@ elm_webview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
 }
 
 /**
- * Add callback to treat mime type
+ * Add callback to treat scheme
  *
- * When user click link, the WebView may have different action by mime type.
- * This is a way to choose proper action each mime type.
+ * When user click link, the WebView may have different action by scheme.
+ * This is a way to choose proper action each scheme.
  *
  * @param obj The WebView object
- * @param mime mime type string
- * @param mime_callback callback when user choose link which involved @mime
+ * @param scheme The scheme which user want to receive
+ * @param scheme_callback callback when user choose link which involved @scheme
  *
  * @ingroup WebView
  */
 EAPI void
-elm_webview_mime_callback_set(Evas_Object *obj, const char *mime, Elm_WebView_Mime_Cb func)
+elm_webview_scheme_callback_set(Evas_Object *obj, const char *scheme, Elm_WebView_Mime_Cb func)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return;
-   _elm_smart_webview_mime_callback_set(wd->webkit, mime, func);
+   _elm_smart_webview_scheme_callback_set(wd->webkit, scheme, func);
 }
 
 /**
index ccfb423..f2d29ec 100644 (file)
@@ -6,7 +6,6 @@
 #include "elm_priv.h"
 
 #ifdef ELM_EWEBKIT
-#define SEC_KESSLER
 #include <EWebKit.h>
 #include <cairo.h>
 
 #define ZOOM_IN_BOUNCING 1.25f
 #define BOUNCING_DISTANCE 400
 
-//                     "<!--<body bgcolor=#4c4c4c text=white text-align=left>-->"
+#define NETWORK_FAIL_PAGE_HEADER "<html>" \
+                       "<head><title>Network Failure</title></head>" \
+                       "<body bgcolor=white text=black text-align=left>" \
+                       "<center>" \
+                       "<table>" \
+                       "<tr><td><h1>Network Failure<br/></td></tr>" \
+                       "<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no'>" \
+                       "<tr><td>" \
+                       "<script type='text/javascript'>"\
+                       "var s = "
+
+#define NETWORK_FAIL_PAGE_FOOTER ";" \
+                       "var failingUrl = s.substring(s.indexOf(\"?\"\)+1, s.lastIndexOf(\"?\"\));" \
+                       "document.write(\"<p><tr><td><h2>URL: \" + unescape(failingUrl) + \"</h2></td></tr>\");" \
+                       "var errorDesc = s.substring(s.lastIndexOf(\"?\")+1, s.length);" \
+                       "document.write(\"<tr><td><h2>Error: \" + unescape(errorDesc) + \"</h2></td></tr>\");" \
+                       "</script>" \
+                       "</td></tr>" \
+                       "</table>" \
+                       "</h1>" \
+                       "</body>" \
+                       "</html>"
+
 #define NOT_FOUND_PAGE_HEADER "<html>" \
                        "<head><title>Page Not Found</title></head>" \
                        "<body bgcolor=white text=black text-align=left>" \
@@ -118,7 +139,7 @@ struct _Smart_Data {
 #endif
      Ecore_Job *move_calc_job;
      Ecore_Job *resize_calc_job;
-     Eina_Hash* mime_func_hash;
+     Eina_Hash* scheme_func_hash;
      int locked_dx;
      int locked_dy;
      unsigned char bounce_horiz : 1;
@@ -431,7 +452,7 @@ _elm_smart_webview_add(Evas *evas, Eina_Bool tiled)
        _api.run_javascript_prompt = _smart_run_javascript_prompt;
        _api.should_interrupt_javascript = _smart_should_interrupt_javascript;
        _api.run_open_panel = _smart_run_open_panel;
-       //_api.navigation_policy_decision = _smart_navigation_policy_decision;
+       _api.navigation_policy_decision = _smart_navigation_policy_decision;
 
        _smart = evas_smart_class_new(&_api.sc);
        elm_theme_overlay_add(NULL, WEBVIEW_THEME_EDJ);
@@ -596,16 +617,16 @@ _elm_smart_webview_bounce_allow_set(Evas_Object* obj, Eina_Bool horiz, Eina_Bool
 }
 
 void
-_elm_smart_webview_mime_callback_set(Evas_Object* obj, const char *mime, Elm_WebView_Mime_Cb func)
+_elm_smart_webview_scheme_callback_set(Evas_Object* obj, const char *scheme, Elm_WebView_Mime_Cb func)
 {
    API_ENTRY return;
-   if (!sd->mime_func_hash)
-     sd->mime_func_hash = eina_hash_pointer_new(NULL);
+   if (!sd->scheme_func_hash)
+     sd->scheme_func_hash = eina_hash_pointer_new(NULL);
 
    if (!func)
-     eina_hash_del(sd->mime_func_hash, mime, func);
+     eina_hash_del(sd->scheme_func_hash, scheme, func);
    else
-     eina_hash_add(sd->mime_func_hash, mime, func);
+     eina_hash_add(sd->scheme_func_hash, scheme, func);
 }
 
 void
@@ -902,14 +923,16 @@ static Eina_Bool
 _smart_navigation_policy_decision(Ewk_View_Smart_Data *esd, Ewk_Frame_Resource_Request *request)
 {
    char *protocol_hack;
+   Elm_WebView_Mime_Cb func = NULL;
    Smart_Data *sd = (Smart_Data*)esd;
-   if (!sd->mime_func_hash)
-     return EINA_FALSE;
 
-   protocol_hack = strstr(request->url, ":");
-   *protocol_hack = '\0';
-   Elm_WebView_Mime_Cb func = (Elm_WebView_Mime_Cb) eina_hash_find(sd->mime_func_hash, request->url);
-   *protocol_hack = ':';
+   if (sd->scheme_func_hash)
+     {
+       protocol_hack = strstr(request->url, ":");
+       *protocol_hack = '\0';
+       func = (Elm_WebView_Mime_Cb) eina_hash_find(sd->scheme_func_hash, request->url);
+       *protocol_hack = ':';
+     }
 
    if (!func)
      {
@@ -1020,7 +1043,30 @@ _smart_load_error(void* data, Evas_Object* webview, void* arg)
    // if error, call loadNotFoundPage
    Ewk_Frame_Load_Error *error = (Ewk_Frame_Load_Error *) arg;
    int errorCode = (error)? error->code: 0;
-   if ( errorCode != 0 && errorCode != -999 )
+   DBG("<< load error [code: %d] [domain: %s] [description: %s] [failing_url: %s] >>\n",
+        error->code, error->domain, error->description, error->failing_url);
+   if ((errorCode <= -200 && errorCode >= -172))
+     {
+       if (!sd->ewk_view_stop)
+         sd->ewk_view_stop = (Eina_Bool (*)(Evas_Object *))dlsym(ewk_handle, "ewk_view_stop");
+       sd->ewk_view_stop(webview);
+
+       if (!sd->ewk_view_frame_main_get)
+         sd->ewk_view_frame_main_get = (Evas_Object *(*)(const Evas_Object *))dlsym(ewk_handle, "ewk_view_frame_main_get");
+
+       if (!sd->ewk_frame_contents_set)
+         sd->ewk_frame_contents_set = (Eina_Bool (*)(Evas_Object *, const char *, size_t, const char *, const char *, const char *))dlsym(ewk_handle, "ewk_frame_contents_set");
+
+       snprintf(szBuffer, 2048, NETWORK_FAIL_PAGE_HEADER "\"?%s?%s\"" NETWORK_FAIL_PAGE_FOOTER, error->failing_url, error->description);
+       sd->ewk_frame_contents_set(error->frame, szBuffer, 0, NULL, NULL, error->failing_url);
+
+       Evas_Object *popup = elm_popup_add(obj);
+       evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_popup_desc_set(popup, error->description);
+       elm_popup_buttons_add(popup, 1, "OK", ELM_POPUP_RESPONSE_OK, NULL);
+       evas_object_show(popup);
+     }
+   else if (errorCode != 0 && errorCode != -999)
      { // 0 ok, -999 request cancelled
        //char szStrBuffer[1024];
        //snprintf(szStrBuffer, 1024, "page not found:, [code: %d] [domain: %s] [description: %s] [failing_url: %s] \n",
@@ -1156,7 +1202,8 @@ _smart_input_method_changed(void* data, Evas_Object* webview, void* arg)
 
    Ecore_IMF_Context* imContext = sd->ewk_view_core_imContext_get(webview);
    Eina_Bool active = (Eina_Bool)arg;
-   if (active && sd->mouse_clicked)
+   if(!sd->mouse_clicked) return;
+   if (active)
      {
        static unsigned int lastImh = 0;//FIXME
        if (sd->ewk_view_imh_get == NULL)
@@ -1181,6 +1228,7 @@ _smart_input_method_changed(void* data, Evas_Object* webview, void* arg)
             ecore_imf_context_client_canvas_set(imContext, evas_object_evas_get(sd->base.self));
             ecore_imf_context_input_panel_show (imContext);
          }
+       sd->mouse_clicked = EINA_FALSE;
      }
    else
      {
index 6a4306e..7536238 100644 (file)
@@ -5,7 +5,7 @@ Evas_Object* _elm_smart_webview_add(Evas *evas, Eina_Bool tiled);
 void         _elm_smart_webview_events_feed_set(Evas_Object* obj, Eina_Bool feed);
 Eina_Bool    _elm_smart_webview_events_feed_get(Evas_Object* obj);
 void         _elm_smart_webview_bounce_allow_set(Evas_Object* obj, Eina_Bool horiz, Eina_Bool vert);
-void         _elm_smart_webview_mime_callback_set(Evas_Object* obj, const char *mime, Elm_WebView_Mime_Cb func);
+void         _elm_smart_webview_scheme_callback_set(Evas_Object* obj, const char *scheme, Elm_WebView_Mime_Cb func);
 void         _elm_smart_webview_default_layout_width_set(Evas_Object *obj, int width);
 #ifdef BOUNCING_SUPPORT
 void         _elm_smart_webview_container_set(Evas_Object *obj, Evas_Object *container);