--- /dev/null
+CC ?= gcc
+
+TARGETS = utc_UIFW_elm_navigationbar_add_func \
+ utc_UIFW_elm_navigationbar_push_func \
+ utc_UIFW_elm_navigationbar_pop_func \
+ utc_UIFW_elm_navigationbar_to_content_pop_func \
+ utc_UIFW_elm_navigationbar_title_label_set_func \
+ utc_UIFW_elm_navigationbar_title_label_get_func \
+ utc_UIFW_elm_navigationbar_title_object_add_func \
+ utc_UIFW_elm_navigationbar_title_object_list_get_func \
+ utc_UIFW_elm_navigationbar_content_top_get_func \
+ utc_UIFW_elm_navigationbar_content_bottom_get_func \
+ utc_UIFW_elm_navigationbar_hidden_set_func \
+ utc_UIFW_elm_navigationbar_title_button_set_func \
+ utc_UIFW_elm_navigationbar_title_button_get_func \
+ utc_UIFW_elm_navigationbar_subtitle_label_get_func \
+ utc_UIFW_elm_navigationbar_subtitle_label_set_func \
+ utc_UIFW_elm_navigationbar_title_object_list_unset_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 *~
--- /dev/null
+#!/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"
--- /dev/null
+/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_add_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_push_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_pop_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_to_content_pop_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_label_set_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_label_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_object_add_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_object_list_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_content_top_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_content_bottom_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_hidden_set_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_button_set_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_button_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_subtitle_label_get_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_subtitle_label_set_func
+/elm_ts/navigationbar/utc_UIFW_elm_navigationbar_title_object_list_unset_func
--- /dev/null
+#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);
+}
--- /dev/null
+#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_navigationbar_add_func_01(void);
+static void utc_UIFW_elm_navigationbar_add_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_add_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_add_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != main_win ) {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
+}
+
+/**
+ * @brief Positive test case of elm_navigationbar_add()
+ */
+static void utc_UIFW_elm_navigationbar_add_func_01(void)
+{
+
+ Evas_Object *navigationbar = NULL;
+
+
+ navigationbar = elm_navigationbar_add(main_win);
+
+ if (!navigationbar) {
+ tet_infoline("elm_navigationbar_add() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_add()
+ */
+static void utc_UIFW_elm_navigationbar_add_func_02(void)
+{
+ Evas_Object *navigationbar = NULL;
+
+
+ navigationbar = elm_navigationbar_add(NULL);
+
+ if (navigationbar) {
+ tet_infoline("elm_navigationbar_add() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_content_bottom_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_content_bottom_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_content_bottom_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_content_bottom_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_content_bottom_get()
+ */
+static void utc_UIFW_elm_navigationbar_content_bottom_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ Evas_Object *btm = elm_navigationbar_content_bottom_get(navibar);
+
+ if (!btm) {
+ tet_infoline("elm_navigationbar_content_bottom_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_content_bottom_get()
+ */
+static void utc_UIFW_elm_navigationbar_content_bottom_get_func_02(void)
+{
+ Evas_Object *btm = elm_navigationbar_content_bottom_get(navibar);
+ if (btm) {
+ tet_infoline("elm_navigationbar_content_bottom_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_content_top_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_content_top_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_content_top_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_content_top_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_content_top_get()
+ */
+static void utc_UIFW_elm_navigationbar_content_top_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ Evas_Object *top = elm_navigationbar_content_bottom_get(navibar);
+ if (!top) {
+ tet_infoline("elm_navigationbar_content_top_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_content_top_get()
+ */
+static void utc_UIFW_elm_navigationbar_content_top_get_func_02(void)
+{
+ Evas_Object *top = elm_navigationbar_content_bottom_get(navibar);
+ if (top) {
+ tet_infoline("elm_navigationbar_content_top_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_hidden_set_func_01(void);
+static void utc_UIFW_elm_navigationbar_hidden_set_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_hidden_set_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_hidden_set_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_hidden_set()
+ */
+static void utc_UIFW_elm_navigationbar_hidden_set_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_hidden_set(navibar, EINA_TRUE);
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_hidden_set()
+ */
+static void utc_UIFW_elm_navigationbar_hidden_set_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_hidden_set(NULL, EINA_TRUE);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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,*navibar;
+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_navigationbar_pop_func_01(void);
+static void utc_UIFW_elm_navigationbar_pop_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_pop_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_pop_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);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_pop()
+ */
+static void utc_UIFW_elm_navigationbar_pop_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_pop(navibar);
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_pop()
+ */
+static void utc_UIFW_elm_navigationbar_pop_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_pop(NULL);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_push_func_01(void);
+static void utc_UIFW_elm_navigationbar_push_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_push_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_push_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);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_push()
+ */
+static void utc_UIFW_elm_navigationbar_push_func_01(void)
+{
+
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_push()
+ */
+static void utc_UIFW_elm_navigationbar_push_func_02(void)
+{
+ elm_navigationbar_push(NULL, NULL, NULL, NULL, NULL, NULL);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_subtitle_label_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_subtitle_label_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_subtitle_label_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_subtitle_label_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_subtitle_label_get()
+ */
+static void utc_UIFW_elm_navigationbar_subtitle_label_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_subtitle_label_set(navibar, content, "subtitle");
+ const char *text = elm_navigationbar_subtitle_label_get(navibar,content);
+ if (!text) {
+ tet_infoline("elm_navigationbar_subtitle_label_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_subtitle_label_get()
+ */
+static void utc_UIFW_elm_navigationbar_subtitle_label_get_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ const char *text = elm_navigationbar_subtitle_label_get(navibar,content);
+ if (text) {
+ tet_infoline("elm_navigationbar_subtitle_label_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_subtitle_label_set_func_01(void);
+static void utc_UIFW_elm_navigationbar_subtitle_label_set_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_subtitle_label_set_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_subtitle_label_set_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_subtitle_label_set()
+ */
+static void utc_UIFW_elm_navigationbar_subtitle_label_set_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_subtitle_label_set(navibar, content, "Title");
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_subtitle_label_set()
+ */
+static void utc_UIFW_elm_navigationbar_subtitle_label_set_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_subtitle_label_set(NULL, NULL, NULL);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_button_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_button_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_button_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_button_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_button_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_button_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *button = elm_button_add(navibar);
+ elm_button_label_set(button, "next");
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_button_set(navibar, content, button, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ Evas_Object *btn = elm_navigationbar_title_button_get(navibar, content, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ if (!btn) {
+ tet_infoline("elm_navigationbar_title_button_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_button_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_button_get_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *button = elm_button_add(navibar);
+ elm_button_label_set(button, "next");
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ Evas_Object *btn = elm_navigationbar_title_button_get(navibar, content, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ if (btn) {
+ tet_infoline("elm_navigationbar_title_button_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_button_set_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_button_set_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_button_set_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_button_set_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_button_set()
+ */
+static void utc_UIFW_elm_navigationbar_title_button_set_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *button = elm_button_add(navibar);
+ elm_button_label_set(button, "next");
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_button_set(navibar, content, button, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_button_set()
+ */
+static void utc_UIFW_elm_navigationbar_title_button_set_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *button = elm_button_add(navibar);
+ elm_button_label_set(button, "next");
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_button_set(NULL, content, button, ELM_NAVIGATIONBAR_FUNCTION_BUTTON1);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_label_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_label_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_label_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_label_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_label_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_label_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_label_set(navibar, content, "subtitle");
+ const char *text = elm_navigationbar_title_label_get(navibar,content);
+ if (!text) {
+ tet_infoline("elm_navigationbar_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_navigationbar_title_label_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_label_get_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ const char *text = elm_navigationbar_title_label_get(navibar,content);
+ if (text) {
+ tet_infoline("elm_navigationbar_title_label_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_label_set_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_label_set_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_label_set_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_label_set_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_label_set()
+ */
+static void utc_UIFW_elm_navigationbar_title_label_set_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_label_set(navibar, content, "Title");
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_label_set()
+ */
+static void utc_UIFW_elm_navigationbar_title_label_set_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_label_set(NULL, NULL, NULL);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_object_add_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_object_add_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_object_add_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_object_add_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_object_add()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_add_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_object_add(navibar, content, segment);
+
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_object_add()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_add_func_02(void)
+{
+
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_object_add(NULL, content, segment);
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_object_list_get_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_object_list_get_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_object_list_get_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_object_list_get_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static void startup(void)
+{
+ tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
+ elm_init(0, NULL);
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_show(main_win);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_object_list_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_list_get_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_object_add(navibar, content, segment);
+ Eina_List *list = elm_navigationbar_title_object_list_get(navibar, content);
+ if (!list) {
+ tet_infoline("elm_navigationbar_title_object_list_get() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_object_list_get()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_list_get_func_02(void)
+{
+
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ Eina_List *list = elm_navigationbar_title_object_list_get(navibar, content);
+ if (list) {
+ tet_infoline("elm_navigationbar_title_object_list_get() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_title_object_list_unset_func_01(void);
+static void utc_UIFW_elm_navigationbar_title_object_list_unset_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_title_object_list_unset_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_title_object_list_unset_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);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_title_object_list_unset()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_list_unset_func_01(void)
+{
+ Eina_List *list = NULL;
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_object_add(navibar, content, segment);
+ elm_navigationbar_title_object_list_unset(navibar, content, &list);
+ if (!list) {
+ tet_infoline("elm_navigationbar_title_object_list_unset() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_title_object_list_unset()
+ */
+static void utc_UIFW_elm_navigationbar_title_object_list_unset_func_02(void)
+{
+ Eina_List *list = NULL;
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ Evas_Object *segment = elm_segment_control_add(navibar);
+ elm_segment_control_add_segment(navibar, NULL, "Sg1", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg2", EINA_FALSE);
+ elm_segment_control_add_segment(navibar, NULL, "Sg3", EINA_FALSE);
+ evas_object_show(segment);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_title_object_list_unset(navibar, content, &list);
+ if (list) {
+ tet_infoline("elm_navigationbar_title_object_list_unset() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
--- /dev/null
+#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, *navibar;
+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_navigationbar_to_content_pop_func_01(void);
+static void utc_UIFW_elm_navigationbar_to_content_pop_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_UIFW_elm_navigationbar_to_content_pop_func_01, POSITIVE_TC_IDX },
+ { utc_UIFW_elm_navigationbar_to_content_pop_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);
+ navibar = elm_navigationbar_add(main_win);
+ evas_object_show(navibar);
+}
+
+static void cleanup(void)
+{
+ if ( NULL != navibar ) {
+ evas_object_del(navibar);
+ navibar = NULL;
+ }
+ 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_navigationbar_to_content_pop()
+ */
+static void utc_UIFW_elm_navigationbar_to_content_pop_func_01(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_to_content_pop(navibar, content);
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_navigationbar_to_content_pop()
+ */
+static void utc_UIFW_elm_navigationbar_to_content_pop_func_02(void)
+{
+ Evas_Object *content = elm_icon_add(navibar);
+ snprintf(buf, sizeof(buf), "%s/00_volume_icon.png", ICON_DIR);
+ elm_icon_file_set(content, buf, NULL);
+ evas_object_size_hint_aspect_set(content, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_scale_set(content, 1, 1);
+
+ elm_navigationbar_push(navibar, "title", NULL, NULL, NULL, content);
+ elm_navigationbar_to_content_pop(NULL, content);
+
+ tet_result(TET_PASS);
+}
:include:/elm_ts/webview/tslist
:include:/elm_ts/datefield/tslist
:include:/elm_ts/bubble/tslist
+ :include:/elm_ts/navigationbar/tslist
#yhkim
ch