[bubble]add testcases
authorSohyun Kim <anna1014.kim@samsung.com>
Wed, 15 Sep 2010 08:00:25 +0000 (17:00 +0900)
committerSohyun Kim <anna1014.kim@samsung.com>
Wed, 15 Sep 2010 08:00:25 +0000 (17:00 +0900)
13 files changed:
TC/elm_ts/bubble/1 [new file with mode: 0644]
TC/elm_ts/bubble/Makefile
TC/elm_ts/bubble/tslist
TC/elm_ts/bubble/utc_UIFW_elm_bubble_add_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_set_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_unset_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_corner_set_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_get_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_set_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_get_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_set_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_get_func.c [new file with mode: 0644]
TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_set_func.c [new file with mode: 0644]

diff --git a/TC/elm_ts/bubble/1 b/TC/elm_ts/bubble/1
new file mode 100644 (file)
index 0000000..d5823fb
--- /dev/null
@@ -0,0 +1,111 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_label_set_func_01(void);
+static void utc_UIFW_elm_bubble_label_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_label_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_label_set()
+ */
+static void utc_UIFW_elm_bubble_label_set_func_01(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_label_set(bubble, "2010.09.15");
+
+       if (strcmp(elm_bubble_label_get(bubble), "2010.09.15")) {
+               tet_infoline("elm_bubble_label_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_label_set()
+ */
+static void utc_UIFW_elm_bubble_label_set_func_02(void)
+{
+       int r = 0;
+
+/*
+       r = elm_bubble_label_set(...);
+*/
+       if (r) {
+               tet_infoline("elm_bubble_label_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       tet_result(TET_PASS);
+}
index bb6ac7f..20dc6b7 100755 (executable)
@@ -1,7 +1,15 @@
 CC ?= gcc
 
-TARGETS = uts_elm_imageslider_add_test \
-         uts_elm_imageslider_add_func
+TARGETS = utc_UIFW_elm_bubble_add_func \
+         utc_UIFW_elm_bubble_label_set_func \
+         utc_UIFW_elm_bubble_label_get_func \
+         utc_UIFW_elm_bubble_info_set_func \
+         utc_UIFW_elm_bubble_info_get_func \
+         utc_UIFW_elm_bubble_content_set_func \
+         utc_UIFW_elm_bubble_content_unset_func \
+         utc_UIFW_elm_bubble_icon_set_func \
+         utc_UIFW_elm_bubble_icon_get_func \
+         utc_UIFW_elm_bubble_corner_set_func
 
 PKGS = elementary
 
index b824c5b..4141fac 100644 (file)
@@ -1 +1,11 @@
 #/elm_ts/imageslider/utc_UIFW_elm_imageslider_add_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_add_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_label_set_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_label_get_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_info_set_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_info_get_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_content_set_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_content_unset_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_icon_set_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_icon_get_func
+/elm_ts/bubble/utc_UIFW_elm_bubble_corner_set_func
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_add_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_add_func.c
new file mode 100644 (file)
index 0000000..0fa3976
--- /dev/null
@@ -0,0 +1,112 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_add_func_01(void);
+static void utc_UIFW_elm_bubble_add_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_add_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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 != bubble) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_add()
+ */
+static void utc_UIFW_elm_bubble_add_func_01(void)
+{
+       bubble = elm_bubble_add(main_win);
+
+       if (!bubble) {
+               tet_infoline("elm_bubble_add() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+               evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_add()
+ */
+static void utc_UIFW_elm_bubble_add_func_02(void)
+{
+       bubble = elm_bubble_add(NULL);
+       
+       if (bubble) {
+               tet_infoline("elm_bubble_add() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+       
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_set_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_set_func.c
new file mode 100644 (file)
index 0000000..546731e
--- /dev/null
@@ -0,0 +1,118 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_content_set_func_01(void);
+static void utc_UIFW_elm_bubble_content_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_content_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_content_set()
+ */
+static void utc_UIFW_elm_bubble_content_set_func_01(void)
+{
+       Evas_Object *entry = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       entry = elm_entry_add(bubble);
+       elm_entry_entry_set(entry, "Don't push yourself too much. you're gonna get sick");
+       elm_bubble_content_set(bubble, entry);
+
+       if (elm_bubble_content_unset(bubble) != entry) {
+               tet_infoline("elm_bubble_content_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_content_set()
+ */
+static void utc_UIFW_elm_bubble_content_set_func_02(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_content_set(bubble, NULL);
+       
+       if (elm_bubble_content_unset(bubble)) {
+               tet_infoline("elm_bubble_content_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_unset_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_content_unset_func.c
new file mode 100644 (file)
index 0000000..2305b0c
--- /dev/null
@@ -0,0 +1,126 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_content_unset_func_01(void);
+static void utc_UIFW_elm_bubble_content_unset_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_content_unset_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_content_unset_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 != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_content_unset()
+ */
+static void utc_UIFW_elm_bubble_content_unset_func_01(void)
+{
+       Evas_Object *entry = NULL;
+       Evas_Object *content = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       entry = elm_entry_add(bubble);
+       elm_entry_entry_set(entry, "Don't push yourself too much. you're gonna get sick");
+       elm_bubble_content_set(bubble, entry);
+       content = elm_bubble_content_unset(bubble);
+       
+       if (!content || content != entry) {
+               tet_infoline("elm_bubble_content_unset() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_content_unset()
+ */
+static void utc_UIFW_elm_bubble_content_unset_func_02(void)
+{
+       Evas_Object *entry = NULL;
+       Evas_Object *content = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       entry = elm_entry_add(bubble);
+       elm_entry_entry_set(entry, "Don't push yourself too much. you're gonna get sick");
+       elm_bubble_content_set(bubble, entry);
+       content = elm_bubble_content_unset(NULL);
+       
+       if (content) {
+               tet_infoline("elm_bubble_content_unset() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_corner_set_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_corner_set_func.c
new file mode 100644 (file)
index 0000000..c514786
--- /dev/null
@@ -0,0 +1,114 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_corner_set_func_01(void);
+static void utc_UIFW_elm_bubble_corner_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_corner_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_corner_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_corner_set()
+ */
+static void utc_UIFW_elm_bubble_corner_set_func_01(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_corner_set(bubble, "top_right");
+       
+       /*if (!r) {
+               tet_infoline("elm_bubble_corner_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }*/
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_corner_set()
+ */
+static void utc_UIFW_elm_bubble_corner_set_func_02(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_corner_set(bubble, NULL);
+
+       /*if (r) {
+               tet_infoline("elm_bubble_corner_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }*/
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_get_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_get_func.c
new file mode 100644 (file)
index 0000000..8efa644
--- /dev/null
@@ -0,0 +1,128 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_icon_get_func_01(void);
+static void utc_UIFW_elm_bubble_icon_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_icon_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_icon_get()
+ */
+static void utc_UIFW_elm_bubble_icon_get_func_01(void)
+{
+       Evas_Object *icon = NULL;
+       Evas_Object *content = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       icon = elm_icon_add(bubble);
+       elm_icon_file_set(icon, "/usr/share/beat_winset_test/icon/UIImageView_Item/UIImageView1.jpg", NULL);
+       evas_object_size_hint_min_set(icon, 150, 150);
+       elm_bubble_icon_set(bubble, icon);
+       content = elm_bubble_icon_get(bubble);
+
+       if (!content || content != icon) {
+               tet_infoline("elm_bubble_icon_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_icon_get()
+ */
+static void utc_UIFW_elm_bubble_icon_get_func_02(void)
+{
+       Evas_Object *icon = NULL;
+       Evas_Object *content = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       icon = elm_icon_add(bubble);
+       elm_icon_file_set(icon, "/usr/share/beat_winset_test/icon/UIImageView_Item/UIImageView1.jpg", NULL);
+       evas_object_size_hint_min_set(icon, 150, 150);
+       elm_bubble_icon_set(bubble, icon);
+       content = elm_bubble_icon_get(NULL);
+
+       if (content) {
+               tet_infoline("elm_bubble_icon_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_set_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_icon_set_func.c
new file mode 100644 (file)
index 0000000..f7947a8
--- /dev/null
@@ -0,0 +1,119 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_icon_set_func_01(void);
+static void utc_UIFW_elm_bubble_icon_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_icon_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_icon_set()
+ */
+static void utc_UIFW_elm_bubble_icon_set_func_01(void)
+{
+       Evas_Object *icon = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       icon = elm_icon_add(bubble);
+       elm_icon_file_set(icon, "/usr/share/beat_winset_test/icon/UIImageView_Item/UIImageView1.jpg", NULL);
+       evas_object_size_hint_min_set(icon, 150, 150);
+       elm_bubble_icon_set(bubble, icon);
+
+       if (elm_bubble_icon_get(bubble) != icon) {
+               tet_infoline("elm_bubble_icon_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_icon_set()
+ */
+static void utc_UIFW_elm_bubble_icon_set_func_02(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_icon_set(bubble, NULL);
+
+       if (elm_bubble_icon_get(bubble)) {
+               tet_infoline("elm_bubble_icon_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_get_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_get_func.c
new file mode 100644 (file)
index 0000000..a9e4432
--- /dev/null
@@ -0,0 +1,120 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_info_get_func_01(void);
+static void utc_UIFW_elm_bubble_info_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_info_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_info_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_info_get()
+ */
+static void utc_UIFW_elm_bubble_info_get_func_01(void)
+{
+       const char *info = NULL;
+       
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_info_set(bubble, "09:42 AM");
+       info = elm_bubble_info_get(bubble);
+       
+       if (!info || strcmp(info, "09:42 AM")) {
+               tet_infoline("elm_bubble_info_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_info_get()
+ */
+static void utc_UIFW_elm_bubble_info_get_func_02(void)
+{
+       const char *info = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_info_set(bubble, "09:42 AM");
+       info = elm_bubble_info_get(NULL);
+
+       if (info) {
+               tet_infoline("elm_bubble_info_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_set_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_info_set_func.c
new file mode 100644 (file)
index 0000000..a6b4ddf
--- /dev/null
@@ -0,0 +1,114 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_info_set_func_01(void);
+static void utc_UIFW_elm_bubble_info_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_info_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_info_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_info_set()
+ */
+static void utc_UIFW_elm_bubble_info_set_func_01(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_info_set(bubble, "09:24 AM");
+       
+       if (strcmp(elm_bubble_info_get(bubble), "09:24 AM")) {
+               tet_infoline("elm_bubble_info_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_info_set()
+ */
+static void utc_UIFW_elm_bubble_info_set_func_02(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_info_set(bubble, NULL);
+       
+       if (elm_bubble_info_get(bubble)) {
+               tet_infoline("elm_bubble_info_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_get_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_get_func.c
new file mode 100644 (file)
index 0000000..5127a89
--- /dev/null
@@ -0,0 +1,120 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_label_get_func_01(void);
+static void utc_UIFW_elm_bubble_label_get_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_label_get_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_label_get()
+ */
+static void utc_UIFW_elm_bubble_label_get_func_01(void)
+{
+       const char *label = NULL;
+       
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_label_set(bubble, "2010.09.15");
+       label = elm_bubble_label_get(bubble);
+       
+       if (!label || strcmp(label, "2010.09.15")) {
+               tet_infoline("elm_bubble_label_get() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_label_get()
+ */
+static void utc_UIFW_elm_bubble_label_get_func_02(void)
+{
+       const char *label = NULL;
+
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_label_set(bubble, "2010.09.15");
+       label = elm_bubble_label_get(NULL);
+       
+       if (label) {
+               tet_infoline("elm_bubble_label_get() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
diff --git a/TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_set_func.c b/TC/elm_ts/bubble/utc_UIFW_elm_bubble_label_set_func.c
new file mode 100644 (file)
index 0000000..28991db
--- /dev/null
@@ -0,0 +1,114 @@
+#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 Evas_Object *main_win;
+static Evas_Object *bubble;
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_UIFW_elm_bubble_label_set_func_01(void);
+static void utc_UIFW_elm_bubble_label_set_func_02(void);
+
+enum {
+       POSITIVE_TC_IDX = 0x01,
+       NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+       { utc_UIFW_elm_bubble_label_set_func_01, POSITIVE_TC_IDX },
+       { utc_UIFW_elm_bubble_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);     
+}
+
+static void cleanup(void)
+{
+       if ( NULL != bubble ) {
+               evas_object_del(bubble);
+               bubble = 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_bubble_label_set()
+ */
+static void utc_UIFW_elm_bubble_label_set_func_01(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_label_set(bubble, "2010.09.15");
+
+       if (strcmp(elm_bubble_label_get(bubble), "2010.09.15")) {
+               tet_infoline("elm_bubble_label_set() failed in positive test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+       
+       tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init elm_bubble_label_set()
+ */
+static void utc_UIFW_elm_bubble_label_set_func_02(void)
+{
+       bubble = elm_bubble_add(main_win);
+       elm_bubble_label_set(bubble, NULL);
+       
+       if (elm_bubble_label_get(bubble)) {
+               tet_infoline("elm_bubble_label_set() failed in negative test case");
+               tet_result(TET_FAIL);
+               return;
+       }
+
+       evas_object_resize(bubble, 480, 0);
+       evas_object_move(bubble, 0, 40);
+       evas_object_show(bubble);
+
+       tet_result(TET_PASS);
+}