2 #include <Elementary.h>
\r
5 // For checking the result of the positive test case.
\r
6 #define TET_CHECK_PASS(x1, y...) \
\r
8 Evas_Object *err = y; \
\r
11 tet_printf("[TET_CHECK_PASS]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
\r
12 tet_result(TET_FAIL); \
\r
17 // For checking the result of the negative test case.
\r
18 #define TET_CHECK_FAIL(x1, y...) \
\r
20 Evas_Object *err = y; \
\r
23 tet_printf("[TET_CHECK_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__); \
\r
24 tet_result(TET_FAIL); \
\r
30 Evas_Object *main_win;
\r
32 static void startup(void);
\r
33 static void cleanup(void);
\r
35 void (*tet_startup)(void) = startup;
\r
36 void (*tet_cleanup)(void) = cleanup;
\r
38 static void utc_UIFW_elm_nocontents_label_set_func_01(void);
\r
39 static void utc_UIFW_elm_nocontents_label_set_func_02(void);
\r
42 POSITIVE_TC_nocont = 0x01,
\r
46 struct tet_testlist tet_testlist[] = {
\r
47 { utc_UIFW_elm_nocontents_label_set_func_01, POSITIVE_TC_nocont },
\r
48 { utc_UIFW_elm_nocontents_label_set_func_02, NEGATIVE_TC_nocont },
\r
52 static void startup(void)
\r
54 tet_infoline("[[ TET_MSG ]]:: ============ Startup ============ ");
\r
56 main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
\r
57 evas_object_show(main_win);
\r
60 static void cleanup(void)
\r
62 if ( NULL != main_win ) {
\r
63 evas_object_del(main_win);
\r
67 tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
\r
71 * @brief Positive test case of elm_nocontents_label_set()
\r
73 static void utc_UIFW_elm_nocontents_label_set_func_01(void)
\r
75 Evas_Object *nocont = NULL;
76 const char *ch = "no cotents";
77 const char *char_nocont;
\r
78 nocont = elm_nocontents_add(main_win);
\r
79 evas_object_show(nocont);
80 elm_nocontents_label_set(nocont, ch);
81 char_nocont = elm_nocontents_label_get(nocont);
\r
83 tet_infoline("elm_nocontents_label_set() failed in positive test case");
\r
84 tet_result(TET_FAIL);
\r
87 tet_result(TET_PASS);
\r
91 * @brief Negative test case of elm_nocontents_label_set()
\r
93 static void utc_UIFW_elm_nocontents_label_set_func_02(void)
\r
95 Evas_Object *nocont = NULL;
96 const char *ch = "no cotents";
97 const char *char_nocont = NULL;
\r
98 nocont = elm_nocontents_add(main_win);
\r
99 evas_object_show(nocont);
100 elm_nocontents_label_set(NULL, ch);
101 char_nocont = elm_nocontents_label_get(nocont);
\r
103 tet_infoline("elm_nocontents_label_set() failed in positive test case");
\r
104 tet_result(TET_FAIL);
\r
107 tet_result(TET_PASS);
\r