#include <Elementary.h>
#include "../utc_elm_common.h"
-#define IMAGE_FILE "./tizen_efl.png"
-#define EDJE_FILE "./layout_example.edj"
+#define IMAGE_FILE "./bg/tizen_efl.png"
+#define EDJE_FILE "./bg/layout_example.edj"
#define GROUP "example/mylayout"
static Evas_Object *main_win = NULL, *bg = NULL;
static Eina_Bool is_image_file_exists = EINA_TRUE, is_edje_file_exists = EINA_TRUE;
* @step 1 Initialize Elementary
* @step 2 Create a main window
* @step 3 Add a background to the main window
- * @step 4 Check if "./tizen_efl.png" file exists
+ * @step 4 Check if "./bg/tizen_efl.png" file exists
*/
static void
setup(void)
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define IMAGE_FILE "./tizen_efl.png"
-#define EDJE_FILE "./layout_example.edj"
+#define IMAGE_FILE "./bg/tizen_efl.png"
+#define EDJE_FILE "./bg/layout_example.edj"
#define GROUP "example/mylayout"
static Evas_Object *main_win = NULL, *bg = NULL;
static Eina_Bool is_image_file_exists = EINA_TRUE, is_edje_file_exists = EINA_TRUE;
* @step 1 Initialize Elementary
* @step 2 Create a main window
* @step 3 Add a background to the main window
- * @step 4 Check if "./tizen_efl.png" file exists
+ * @step 4 Check if "./bg/tizen_efl.png" file exists
*/
static void
* (image or edje collection) to give life for the background works properly and without segmentation fault
* @n Input Data:
* @li the background object
- * @li "./tizen_efl.png", "./layout_example.edj" as the file path
+ * @li "./bg/tizen_efl.png", "./bg/layout_example.edj" as the file path
* @li NULL, "example/mylayout" as the optional key (group in Edje) within the file (optional parameter)
*
* @procedure
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define IMAGE_FILE "./tizen_efl.png"
+#define IMAGE_FILE "./bg/tizen_efl.png"
static Evas_Object *main_win = NULL, *bg = NULL;
static Eina_Bool is_image_file_exists = EINA_TRUE, is_file_set = EINA_TRUE;
* @step 1 Initialize Elementary
* @step 2 Create a main window
* @step 3 Add a background to the main window
- * @step 4 Check if "./tizen_efl.png" file exists
+ * @step 4 Check if "./bg/tizen_efl.png" file exists
* @step 5 Set the image file to the background
*/
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define IMAGE_FILE "./tizen_efl.png"
+#define IMAGE_FILE "./bg/tizen_efl.png"
static Evas_Object *main_win = NULL, *bg = NULL;
static Eina_Bool is_image_file_exists = EINA_TRUE, is_file_set = EINA_TRUE;
* @step 1 Initialize Elementary
* @step 2 Create a main window
* @step 3 Add a background to the main window
- * @step 4 Check if "./tizen_efl.png" file exists
+ * @step 4 Check if "./bg/tizen_efl.png" file exists
* @step 5 Set the image file to the background
*/
#include <Elementary.h>
#include "../utc_elm_common.h"
-#define IMAGE_FILE "./tizen_efl.png"
+#define IMAGE_FILE "./bg/tizen_efl.png"
static Evas_Object *main_win = NULL, *bg = NULL;
static Eina_Bool is_image_file_exists = EINA_TRUE, is_file_set = EINA_TRUE;
* @step 1 Initialize Elementary
* @step 2 Create a main window
* @step 3 Add a background to the main window
- * @step 4 Check if "./tizen_efl.png" file exists
+ * @step 4 Check if "./bg/tizen_efl.png" file exists
* @step 5 Set the image file to the background
*/
static Evas_Object *main_win = NULL, *lay = NULL;
static Eina_Bool file_set = EINA_TRUE;
-#define FILE "../layout/test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
static Evas_Object *main_win = NULL, *lay = NULL;
static Eina_Bool file_set = EINA_TRUE;
-#define FILE "../layout/test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
static Evas_Object *main_win = NULL, *lay = NULL;
static Eina_Bool file_set = EINA_TRUE;
-#define FILE "../layout/test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
Elm_Object_Item *hover_item = NULL;
Elm_Icon_Type elm_icon_type = ELM_ICON_NONE;
const char *context_menu_item_name = "Test item menu";
- const char *item_icon_path = "icon_home.png";
+ const char *item_icon_path = "entry/icon_home.png";
const char *icon_path_get = NULL;
const char *icon_group_get;
*
* @procedure
* @step 1 Add an entry object to the main window
- * @step 2 Set the file for the entry object as "note.txt"
+ * @step 2 Set the file for the entry object as "entry/note.txt"
* @step 3 Get the file path and format for the entry object
* @step 4 Get the entry content
- * @step 5 Set another file for this entry object as "note2.txt"
+ * @step 5 Set another file for this entry object as "entry/note2.txt"
* @step 6 Get the file path and format for the entry object
* @step 7 Get the entry content
* @step 8 Set a NULL file for this entry object
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
*
* @procedure
* @step 1 Add an entry object to the main window
- * @step 2 Set the file for this entry object as "note.txt"
+ * @step 2 Set the file for this entry object as "entry/note.txt"
* @step 3 Call function 3 times in turn with NULL instead of the arguments
*
* @passcondition Test passes if returned values are the same as set values and there is no segmentation fault
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
UNITEST_FUNC_NEG(elm_entry_file_get, entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* to load a file and get a text from it works properly and without segmentation fault
* @n Input Data:
* @li the entry object
- * @li "note.txt"/"note2.txt"/NULL as the path to the file for first/second/third function call
+ * @li "entry/note.txt"/"entry/note2.txt"/NULL as the path to the file for first/second/third function call
* @li ELM_TEXT_FORMAT_PLAIN_UTF8 as the file format
*
* @procedure
* @step 1 Add an entry object to the main window
- * @step 2 Set the file for the entry object as "note.txt"
+ * @step 2 Set the file for the entry object as "entry/note.txt"
* @step 3 Get the file path and format for the entry object
* @step 4 Get the entry content
- * @step 5 Set another file for the entry object as "note2.txt"
+ * @step 5 Set another file for the entry object as "entry/note2.txt"
* @step 6 Get the file path and format for the entry object
* @step 7 Get the entry content
* @step 8 Set a NULL file for the entry object
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* returns EINA_FALSE without segmentation fault
* @n Input Data:
* @li the NULL as entry object
- * @li "note.txt"/"non_exist_file.txt" as the path to the file
+ * @li "entry/note.txt"/"non_exist_file.txt" as the path to the file
* @li ELM_TEXT_FORMAT_PLAIN_UTF8 as the file format
*
* @procedure
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(NULL, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(NULL, "entry/note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set == EINA_TRUE)
{
evas_object_del(entry);
* returns EINA_FALSE without segmentation fault
* @n Input Data:
* @li the entry object
- * @li "note.txt" as the path to the file
+ * @li "entry/note.txt" as the path to the file
* @li -1 instead of the file format
*
* @procedure
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note.txt", -1);
+ is_file_set = elm_entry_file_set(entry, "entry/note.txt", -1);
evas_object_del(entry);
if (is_file_set == EINA_TRUE)
*
* @procedure
* @step 1 Add an entry object to the main window
- * @step 2 Set the file for the entry object as "note.txt"
+ * @step 2 Set the file for the entry object as "entry/note.txt"
* @step 3 Get the file path and format for the entry object
* @step 4 Set another text format to the entry object - ELM_TEXT_FORMAT_MARKUP_UTF8
- * @step 5 Set another file for the entry object as "note2.txt"
+ * @step 5 Set another file for the entry object as "entry/note2.txt"
* @step 6 Get the file path and format for the entry object
*
* @passcondition Test passes if returned values are the same as set values and there is no segmentation fault
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an entry object..", __FILE__, __LINE__);
}
- is_file_set = elm_entry_file_set(entry, "note.txt", ELM_TEXT_FORMAT_MARKUP_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note.txt", ELM_TEXT_FORMAT_MARKUP_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note.txt") || format != ELM_TEXT_FORMAT_MARKUP_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note.txt") || format != ELM_TEXT_FORMAT_MARKUP_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_text_format_set(entry, ELM_TEXT_FORMAT_MARKUP_UTF8);
- is_file_set = elm_entry_file_set(entry, "note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
+ is_file_set = elm_entry_file_set(entry, "entry/note2.txt", ELM_TEXT_FORMAT_PLAIN_UTF8);
if (is_file_set != EINA_TRUE)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
elm_entry_file_get(entry, &file_path, &format);
- if (file_path == NULL || strcmp(file_path, "note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
+ if (file_path == NULL || strcmp(file_path, "entry/note2.txt") || format != ELM_TEXT_FORMAT_PLAIN_UTF8)
{
evas_object_del(entry);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
{
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- elm_theme_overlay_add(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_add(NULL, "./gengrid/gengrid_style.edj");
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
if (main_win == NULL)
{
evas_object_del(main_win);
main_win = NULL;
}
- elm_theme_overlay_del(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_del(NULL, "./gengrid/gengrid_style.edj");
elm_shutdown();
printf(" ============ Cleanup ============ \n");
elm_gengrid_item_class_free(gic);
{
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- elm_theme_overlay_add(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_add(NULL, "./gengrid/gengrid_style.edj");
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
if (main_win == NULL)
{
evas_object_del(main_win);
main_win = NULL;
}
- elm_theme_overlay_del(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_del(NULL, "./gengrid/gengrid_style.edj");
elm_shutdown();
printf(" ============ Cleanup ============ \n");
}
{
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- elm_theme_overlay_add(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_add(NULL, "./gengrid/gengrid_style.edj");
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
if (main_win == NULL)
{
evas_object_del(main_win);
main_win = NULL;
}
- elm_theme_overlay_del(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_del(NULL, "./gengrid/gengrid_style.edj");
elm_shutdown();
printf(" ============ Cleanup ============ \n");
}
{
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- elm_theme_overlay_add(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_add(NULL, "./gengrid/gengrid_style.edj");
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
if (main_win == NULL)
{
evas_object_del(main_win);
main_win = NULL;
}
- elm_theme_overlay_del(NULL, "./gengrid_style.edj");
+ elm_theme_overlay_del(NULL, "./gengrid/gengrid_style.edj");
elm_shutdown();
printf(" ============ Cleanup ============ \n");
}
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "animated_logo.gif", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "icon_home.png", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/icon_home.png", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "animated_logo.gif", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "animated_logo.gif", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "animated_logo.gif", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret_file = elm_icon_file_set(icon, "animated_logo.gif", NULL);
+ ret_file = elm_icon_file_set(icon, "icon/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
evas_object_del(icon);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret = elm_icon_file_set(icon, "icon_home.png", "icon");
+ ret = elm_icon_file_set(icon, "icon/icon_home.png", "icon");
if (ret == EINA_FALSE)
{
evas_object_del(icon);
}
elm_icon_file_get(icon, &file, &group);
evas_object_del(icon);
- if (!file || strcmp(file, "icon_home.png") || !group || strcmp(group, "icon"))
+ if (!file || strcmp(file, "icon/icon_home.png") || !group || strcmp(group, "icon"))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret = elm_icon_file_set(icon, "icon_home.png", "icon");
+ ret = elm_icon_file_set(icon, "icon/icon_home.png", "icon");
if (ret == EINA_FALSE)
{
evas_object_del(icon);
UNITEST_FUNC_NEG(elm_icon_file_get, icon, &file, &group);
evas_object_del(icon);
- if (!file || strcmp(file, "icon_home.png") || !group || strcmp(group, "icon"))
+ if (!file || strcmp(file, "icon/icon_home.png") || !group || strcmp(group, "icon"))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* @objective Positive test case 1 checks whether function call sets a valid file that will be used as icon
* @n Input Data:
* @li the icon object
- * @li "icon_home.png" char array as the path to file that will be used as icon image
+ * @li "icon/icon_home.png" char array as the path to file that will be used as icon image
* @li "icon" char array as the group name that the icon belongs to
*
* @procedure
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an icon..", __FILE__, __LINE__);
return;
}
- ret = elm_icon_file_set(icon, "icon_home.png", "icon");
+ ret = elm_icon_file_set(icon, "icon/icon_home.png", "icon");
if (ret == EINA_FALSE)
{
evas_object_del(icon);
}
elm_icon_file_get(icon, &file, &group);
evas_object_del(icon);
- if (!file || strcmp(file, "icon_home.png") || !group || strcmp(group, "icon"))
+ if (!file || strcmp(file, "icon/icon_home.png") || !group || strcmp(group, "icon"))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* works without segmentation fault
* @n Input Data:
* @li the icon object
- * @li "icon_home.png" char array as the path to file that will be used as icon image
+ * @li "icon/icon_home.png" char array as the path to file that will be used as icon image
* @li NULL as the group name that the icon belongs to
*
* @procedure
}
CREATE_CHECKED_ARGS_ARRAY(0, 0, 1);
- UNITEST_FUNC_NEG_CA(elm_icon_file_set, icon, "icon_home.png", NULL);
+ UNITEST_FUNC_NEG_CA(elm_icon_file_set, icon, "icon/icon_home.png", NULL);
evas_object_del(icon);
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
* works properly and without segmentation fault
* @n Input Data:
* @li the icon object
- * @li "icon_home.png" char array as the path to file that will be used as icon image
+ * @li "icon/icon_home.png" char array as the path to file that will be used as icon image
* @li "icon" char array as the group name that the icon belongs to
*
* @procedure
}
CREATE_CHECKED_ARGS_ARRAY(1, 1, 0);
- UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_icon_file_set, icon, "icon_home.png", "icon");
+ UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_icon_file_set, icon, "icon/icon_home.png", "icon");
evas_object_del(icon);
if (TEST_FAIL == result_of_testing)
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./icon.edj");
+ elm_theme_extension_add(NULL, "./icon/icon.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./icon.edj");
+ elm_theme_extension_add(NULL, "./icon/icon.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
*/
START_TEST(utc_UIFW_elm_icon_thumb_set_p_1)
{
- elm_icon_thumb_set(main_win, "icon_home.png", "anygroupyouwant");
+ elm_icon_thumb_set(main_win, "icon/icon_home.png", "anygroupyouwant");
/*TODO: Write a function that wil help to check icon thumb.*/
printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
START_TEST(utc_UIFW_elm_icon_thumb_set_n_1)
{
- const char* file = "icon_home.png";
+ const char* file = "icon/icon_home.png";
const char* group = "myGroup";
UNITEST_FUNC_NEG(elm_icon_thumb_set, main_win, file, group);
return;
}
- ret_file = elm_image_file_set(image, "animated_logo.gif", NULL);
+ ret_file = elm_image_file_set(image, "image/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to set a file for the image..", __FILE__, __LINE__);
return;
}
- ret_file = elm_image_file_set(image, "animated_logo.gif", NULL);
+ ret_file = elm_image_file_set(image, "image/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to set a file for the image..", __FILE__, __LINE__);
return;
}
- ret_file = elm_image_file_set(image, "animated_logo.gif", NULL);
+ ret_file = elm_image_file_set(image, "image/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to set a file for the image..", __FILE__, __LINE__);
return;
}
- ret_file = elm_image_file_set(image, "animated_logo.gif", NULL);
+ ret_file = elm_image_file_set(image, "image/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to set a file for the image..", __FILE__, __LINE__);
return;
}
- ret_file = elm_image_file_set(image, "animated_logo.gif", NULL);
+ ret_file = elm_image_file_set(image, "image/animated_logo.gif", NULL);
if (ret_file == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to set a file for the image..", __FILE__, __LINE__);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
return;
}
elm_image_file_get(image, &file, &group);
- if (file == NULL || strcmp(file, eina_file_path_sanitize("image_home.png")) || group == NULL || strcmp(group, "icon"))
+ if (file == NULL || strcmp(file, eina_file_path_sanitize("image/image_home.png")) || group == NULL || strcmp(group, "icon"))
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
UNITEST_FUNC_NEG(elm_image_file_get, image, &file, &group);
- if (file == NULL || strcmp(file, eina_file_path_sanitize("image_home.png")) || group == NULL || strcmp(group, "icon"))
+ if (file == NULL || strcmp(file, eina_file_path_sanitize("image/image_home.png")) || group == NULL || strcmp(group, "icon"))
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* @objective Positive test case checks whether function call to set an image file works properly
* @n Input Data:
* @li the image object
- * @li "image_home.png" as the path to file that will be used as image source
+ * @li "image/image_home.png" as the path to file that will be used as image source
* @li "icon" as the group that the image belongs to
*
* @procedure
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
}
elm_image_file_get(image, &file, &group);
- if (file == NULL || strcmp(file, eina_file_path_sanitize("image_home.png")) || group == NULL || strcmp(group, "icon"))
+ if (file == NULL || strcmp(file, eina_file_path_sanitize("image/image_home.png")) || group == NULL || strcmp(group, "icon"))
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* works without segmentation fault
* @n Input Data:
* @li NULL instead of the image object
- * @li "image_home.png" as the path to file that will be used as image source
+ * @li "image/image_home.png" as the path to file that will be used as image source
* @li "icon" as the group that the image belongs to
*
* @procedure
{
CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_image_file_set, NULL, "image_home.png", "icon");
+ UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_image_file_set, NULL, "image/image_home.png", "icon");
if (TEST_FAIL == result_of_testing)
{
* works without segmentation fault
* @n Input Data:
* @li the image object
- * @li "image_home.png" as the path to file that will be used as image source
+ * @li "image/image_home.png" as the path to file that will be used as image source
* @li "icon" as the group that the image belongs to
*
* @procedure
}
CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
- UNITEST_FUNC_NEG_CA(elm_image_file_set, image, "image_home.png", "icon");
+ UNITEST_FUNC_NEG_CA(elm_image_file_set, image, "image/image_home.png", "icon");
evas_object_del(image);
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
START_TEST(utc_UIFW_elm_image_memfile_set_n_1)
{
image = elm_image_add(main_win);
- elm_image_file_set(image, "image_home.png", "icon");
+ elm_image_file_set(image, "image/image_home.png", "icon");
int mydata[] = {
0x00000000, 0x88888888, 0x00000000, 0x88888888, 0x00000000, 0x88888888, 0x00000000, 0x88888888,
0xffff0000, 0xffffffff, 0xffff0000, 0xffffffff, 0xffff0000, 0xffffffff, 0xffff0000, 0xffffffff
static Evas_Object *main_win = NULL;
static Eina_File *ef = NULL;
-static const char *file = "image_home.png";
+static const char *file = "image/image_home.png";
static const char *group = "icon";
/**
* @objective Positive test case checks whether function call to set an image mmap file works properly
* @n Input Data:
* @li the image object
- * @li "image_home.png" as mmaped file
+ * @li "image/image_home.png" as mmaped file
* @li "icon" as the group that the image belongs to
*
* @procedure
* works without segmentation fault
* @n Input Data:
* @li NULL instead of the image object
- * @li "image_home.png" as the path to file that will be used as image source
+ * @li "image/image_home.png" as the path to file that will be used as image source
* @li "icon" as the group that the image belongs to
*
* @procedure
* works without segmentation fault
* @n Input Data:
* @li the image object
- * @li "image_home.png" as the path to file that will be used as image source
+ * @li "image/image_home.png" as the path to file that will be used as image source
* @li "icon" as the group that the image belongs to
*
* @procedure
START_TEST(utc_UIFW_elm_image_object_get_p_1)
{
image = elm_image_add(main_win);
- elm_image_file_set(image, "image_home.png", "icon");
+ elm_image_file_set(image, "image/image_home.png", "icon");
Evas_Object *image2 = NULL;
image2 = elm_image_object_get(main_win);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Unable to create an image object..", __FILE__, __LINE__);
return;
}
- file_set = elm_image_file_set(image, "image_home.png", "icon");
+ file_set = elm_image_file_set(image, "image/image_home.png", "icon");
if (file_set != EINA_TRUE)
{
evas_object_del(image);
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button1 = NULL, *button2 = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button1 = NULL, *button2 = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define PART_NAME "test_suite/custom"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define PART_NAME "test_suite/custom"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
*/
START_TEST(utc_elm_layout_content_swallow_list_get_p)
{
- if (!elm_layout_file_set(layout, "./layout_example_test.edj", "test_layout"))
+ if (!elm_layout_file_set(layout, "./layout/layout_example_test.edj", "test_layout"))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define PART_NAME "test_suite/custom"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
* @step 1 Call elm_layout_file_set function to set the file that will be used as layout
* and check on EINA_TRUE
* @step 2 Call elm_layout_file_get function to get the loaded file and group name
- * and check on expected values (edj file name on "./layout_example_test.edj", group name on "test_layout")
+ * and check on expected values (edj file name on "./layout/layout_example_test.edj", group name on "test_layout")
*
* @passcondition
* @li Test passes if function gets expected the loaded file and group name
*/
START_TEST(utc_elm_layout_file_get_p)
{
- if (!elm_layout_file_set(layout, "./layout_example_test.edj", "test_layout"))
+ if (!elm_layout_file_set(layout, "./layout/layout_example_test.edj", "test_layout"))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
* that will be used as layout works properly and without segmentation fault
* @n Input Data:
* @li the layout object
- * @li "test_suite_layout.edj" as the path to file (edj) that will be used as layout
+ * @li "layout/test_suite_layout.edj" as the path to file (edj) that will be used as layout
* @li "test_suite/layout" as the group that the layout belongs in edje file
*
* @procedure
* that will be used as layout works properly and without segmentation fault
* @n Input Data:
* @li NULL, the layout object
- * @li NULL, "test_suite_layout.edj" as the path to file (edj) that will be used as layout
+ * @li NULL, "layout/test_suite_layout.edj" as the path to file (edj) that will be used as layout
* @li NULL, "test_suite/layout" as the group that the layout belongs in edje file
*
* @procedure
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define BOX "test_suite/box"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define BOX "test_suite/box"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include <Elementary_Cursor.h>
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../../utc_negative_unitest.h"
#define BOX "test_suite/box"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include <Elementary_Cursor.h>
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
#define STYLE "test style"
#include <Elementary_Cursor.h>
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
#define STYLE "test style"
#include "../../utc_negative_unitest.h"
#define PART_NAME "test_suite/title"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_FILE "test_suite_layout.edj"
+#define MY_FILE "layout/test_suite_layout.edj"
#define MY_GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_FILE "test_suite_layout.edj"
+#define MY_FILE "layout/test_suite_layout.edj"
#define MY_GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_FILE "test_suite_layout.edj"
+#define MY_FILE "layout/test_suite_layout.edj"
#define MY_GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout_new"
static Evas_Object *main_win = NULL, *layout = NULL;
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_layout_file_set(layout, "test_suite_layout.edj", "test_suite/layout_new");
+ elm_layout_file_set(layout, "layout/test_suite_layout.edj", "test_suite/layout_new");
elm_win_resize_object_add(main_win, layout);
evas_object_show(layout);
elm_object_signal_callback_add(layout, "size,changed", "", _size_changed_cb, layout);
#include "../../utc_negative_unitest.h"
#define TABLE "test_suite/table"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
static Eina_Bool is_layout_file_set = EINA_TRUE, is_layout_table_pack = EINA_TRUE;
#include "../../utc_negative_unitest.h"
#define TABLE "test_suite/table"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
#include "../../utc_negative_unitest.h"
#define TABLE "test_suite/table"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL, *button = NULL;
static Eina_Bool is_layout_file_set = EINA_TRUE, is_layout_table_pack = EINA_TRUE;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART_NAME "test_suite/title"
#define TEXT "text to part"
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
#define PART "test_suite/title"
#define TEXT "The text to set"
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define FILE "test_suite_layout.edj"
+#define FILE "layout/test_suite_layout.edj"
#define GROUP "test_suite/layout"
static Evas_Object *main_win = NULL, *layout = NULL;
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a map widget..", __FILE__, __LINE__);
}
#ifdef ELM_EMAP
- emap = emap_route_gpx_new("track.gpx");
+ emap = emap_route_gpx_new("./map/track.gpx");
if (emap == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to load a track..", __FILE__, __LINE__);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a map widget..", __FILE__, __LINE__);
}
#ifdef ELM_EMAP
- emap = emap_route_gpx_new("track.gpx");
+ emap = emap_route_gpx_new("./map/track.gpx");
if (emap == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to load a track..", __FILE__, __LINE__);
* works properly and doesn't cause segmentation fault
* @n Input Data:
* @li the photo object
- * @li "./tizen_efl.png" string, NULL
+ * @li "./photo/tizen_efl.png" string, NULL
*
* @procedure
* @step 1 Set the file for photo
{
return;
}
- set = elm_photo_file_set(photo, "./tizen_efl.png");
+ set = elm_photo_file_set(photo, "./photo/tizen_efl.png");
if (set != EINA_TRUE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* works properly and doesn't cause segmentation fault
* @n Input Data:
* @li NULL instead of the photo object
- * @li "./tizen_efl.png"
+ * @li "./photo/tizen_efl.png"
*
* @procedure
* @step 1 Call test function with NULL instead of the photo object
return;
}
CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_photo_file_set, photo, "./tizen_efl.png");
+ UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, elm_photo_file_set, photo, "./photo/tizen_efl.png");
if (result_of_testing == TEST_FAIL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* doesn't cause segmentation fault
* @n Input Data:
* @li the photo object
- * @li "./tizen_efl.png"
- * @li "./tizen_efl.png"
+ * @li "./photo/tizen_efl.png"
+ * @li "./photo/tizen_efl.png"
*
* @procedure
* @step 1 Set file for thumbnail for photo
{
return;
}
- elm_photo_thumb_set(photo, "./tizen_efl.png", "./tizen_efl.png");
+ elm_photo_thumb_set(photo, "./photo/tizen_efl.png", "./photo/tizen_efl.png");
/*TODO write test that checks if thumbnail is sat for photo*/
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
* works properly and doesn't cause segmentation fault
* @n Input Data:
* @li NULL, the photo object
- * @li NULL, "./tizen_efl.png"
- * @li NULL, "./tizen_efl.png"
+ * @li NULL, "./photo/tizen_efl.png"
+ * @li NULL, "./photo/tizen_efl.png"
*
* @procedure
* @step 1 Call test function with NULL instead of valid parameters
{
return;
}
- UNITEST_FUNC_NEG(elm_photo_thumb_set, photo, "./tizen_efl.png", "./tizen_efl.png");
+ UNITEST_FUNC_NEG(elm_photo_thumb_set, photo, "./photo/tizen_efl.png", "./photo/tizen_efl.png");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
* @step 2 Get path of current file
*
* @passcondition Returned value is equal to EVAS_LOAD_ERROR_NONE at step 1,
- * returned value is equal to "tizen_efl.png" at step 2 and there is no segmentation fault
+ * returned value is equal to "./photocam/tizen_efl.png" at step 2 and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_photocam_file_get_p)
{
return;
}
- load_result = elm_photocam_file_set(photocam, "tizen_efl.png");
+ load_result = elm_photocam_file_set(photocam, "./photocam/tizen_efl.png");
if (load_result != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
}
file = elm_photocam_file_get(photocam);
- if (!file || (strcmp(file, "tizen_efl.png") != 0))
+ if (!file || (strcmp(file, "./photocam/tizen_efl.png") != 0))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* and doesn't cause segmentation fault
* @n Input Data:
* @li the photocam object
- * @li "tizen_efl.png" string
+ * @li "./photocam/tizen_efl.png" string
*
* @procedure
* @step 1 Set photo file to be shown
* @step 2 Get path of current file
*
* @passcondition Returned value is equal to EVAS_LOAD_ERROR_NONE at step 1,
- * returned value is equal to "tizen_efl.png" at step 2 and there is no segmentation fault
+ * returned value is equal to "./photocam/tizen_efl.png" at step 2 and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_photocam_file_set_p)
{
return;
}
- load_result = elm_photocam_file_set(photocam, "tizen_efl.png");
+ load_result = elm_photocam_file_set(photocam, "./photocam/tizen_efl.png");
if (load_result != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
}
file = elm_photocam_file_get(photocam);
- if ((!file) || (strcmp(file, "tizen_efl.png") != 0))
+ if ((!file) || (strcmp(file, "./photocam/tizen_efl.png") != 0))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* and doesn't cause segmentation fault when photocam is NULL
* @n Input Data:
* @li the photocam object (NULL in the second case)
- * @li "non_existing.png" string, "tizen_efl.png" (in the second case)
+ * @li "non_existing.png" string, "./photocam/tizen_efl.png" (in the second case)
*
* @procedure
* @step 1 Set a non existing photo file to be shown
return;
}
load_result = elm_photocam_file_set(photocam2, "non_existing.png");
- load_result2 = elm_photocam_file_set(NULL, "tizen_efl.png");
+ load_result2 = elm_photocam_file_set(NULL, "./photocam/tizen_efl.png");
if ((load_result != EVAS_LOAD_ERROR_DOES_NOT_EXIST) ||
(load_result2 != EVAS_LOAD_ERROR_NONE)) {
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* instead of photocam, file parameters works properly and doesn't cause segmentation fault
* @n Input Data:
* @li NULL, the photocam object
- * @li "tizen_efl.png" string, NULL
+ * @li "./photocam/tizen_efl.png" string, NULL
*
* @procedure
* @step 1 Call test function with NULL instead of the photocam, file parameters
#ifdef NOT_APPROVED_FOR_BUILD
START_TEST(utc_elm_photocam_file_set_n)
{
- if (UNITEST_FUNC_NEG_RET(EVAS_LOAD_ERROR_GENERIC, elm_photocam_file_set, photocam, "tizen_efl.png") == TEST_FAIL)
+ if (UNITEST_FUNC_NEG_RET(EVAS_LOAD_ERROR_GENERIC, elm_photocam_file_set, photocam, "./photocam/tizen_efl.png") == TEST_FAIL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create photocam..", __FILE__, __LINE__);
}
- elm_photocam_file_set(photocam, "tizen_efl.png");
+ elm_photocam_file_set(photocam, "./photocam/tizen_efl.png");
evas_object_resize(photocam, 200, 200);
evas_object_show(photocam);
{
return;
}
- if (elm_photocam_file_set(photocam, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
{
return;
}
- if (elm_photocam_file_set(photocam2, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam2, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./photocam.edj");
+ elm_theme_extension_add(NULL, "./photocam/photocam.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
{
return;
}
- if (elm_photocam_file_set(photocam, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
{
return;
}
- if (elm_photocam_file_set(photocam2, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam2, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
{
return;
}
- if (elm_photocam_file_set(photocam, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
{
return;
}
- if (elm_photocam_file_set(photocam2, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam2, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
* @step 2 Get the current image pixel width and height
*
* @passcondition w and h are equal to width and height of an image. For
- * "tizen_efl.png" expected 114 as width and height. There is no segmentation fault
+ * "./photocam/tizen_efl.png" expected 114 as width and height. There is no segmentation fault
* @}
*/
START_TEST(utc_elm_photocam_image_size_get_p)
{
return;
}
- if (elm_photocam_file_set(photocam, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
{
return;
}
- if (elm_photocam_file_set(photocam2, "tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
+ if (elm_photocam_file_set(photocam2, "./photocam/tizen_efl.png") != EVAS_LOAD_ERROR_NONE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to set photocam file..", __FILE__, __LINE__);
return;
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an icon..", __FILE__, __LINE__);
return;
}
- elm_icon_file_set(icon1, "/images/logo_small.png", NULL);
+ elm_icon_file_set(icon1, "./data/images/logo_small.png", NULL);
}
static void
static Eina_Bool flag_of_get_func = EINA_FALSE;
static Elm_Slideshow_Item_Class itc;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static Evas_Object* _get(void* data, Evas_Object* obj)
{
static Elm_Object_Item *slide_object2 = NULL;
static Elm_Slideshow_Item_Class itc;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static Evas_Object* _get(void* data, Evas_Object* obj)
{
static Elm_Slideshow_Item_Class itc;
static Eina_Bool flag_of_cmp_func = EINA_FALSE;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static int cmp_func(const void* data1, const void* data2)
{
static Elm_Object_Item *slide_object2 = NULL;
static Elm_Slideshow_Item_Class itc;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static Evas_Object* _get(void* data, Evas_Object* obj)
{
static Elm_Object_Item *slide_object2 = NULL;
static Elm_Slideshow_Item_Class itc;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static Evas_Object* _get(void* data, Evas_Object* obj)
{
static Elm_Object_Item *slide_object2 = NULL;
static Elm_Slideshow_Item_Class itc;
-static const char *img1 = "images/Albums_Item1.jpg";
-static const char *img2 = "images/Albums_Item2.jpg";
+static const char *img1 = "./slideshow/images/Albums_Item1.jpg";
+static const char *img2 = "./slideshow/images/Albums_Item2.jpg";
static Evas_Object* _get(void* data, Evas_Object* obj)
{
return;
}
- elm_theme_extension_add(theme, "./theme_example.edj");
+ elm_theme_extension_add(theme, "./theme/theme_example.edj");
elm_theme_copy(theme, theme_copy);
if (strcmp(elm_theme_get(theme_copy), elm_theme_get(theme)))
{
START_TEST(utc_elm_theme_data_get_p_01)
{
- elm_theme_overlay_add(NULL, "./theme_with_data.edj");
+ elm_theme_overlay_add(NULL, "./theme/theme_with_data.edj");
theme = elm_theme_new();
if (theme == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
return;
}
- elm_theme_overlay_del(NULL, "./theme_with_data.edj");
+ elm_theme_overlay_del(NULL, "./theme/theme_with_data.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
*/
START_TEST(utc_elm_theme_data_get_n_01)
{
- elm_theme_overlay_add(NULL, "./theme_with_data.edj");
+ elm_theme_overlay_add(NULL, "./theme/theme_with_data.edj");
theme = elm_theme_new();
if (theme == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
return;
}
- elm_theme_overlay_del(NULL, "./theme_with_data.edj");
+ elm_theme_overlay_del(NULL, "./theme/theme_with_data.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
}
END_TEST
* works properly and doesn't cause segmentation fault
* @n Input Data:
* @li NULL as the default theme
- * @li "./theme_example.edj" as path to edje file
+ * @li "./theme/theme_example.edj" as path to edje file
*
* @procedure
* @step 1 Call elm_theme_extension_add() with NULL theme pointer as default theme and path to
* extension (.edj file)
*
- * @passcondition "./theme_example.edj" exists in extensions list and there is no segmentation fault
+ * @passcondition "./theme/theme_example.edj" exists in extensions list and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_theme_extension_add_p)
const Eina_List *l = NULL;
void *list_data = NULL;
- elm_theme_extension_add(NULL, "./theme_example.edj");
+ elm_theme_extension_add(NULL, "./theme/theme_example.edj");
/*TODO write test for elm_theme_extension_list_get*/
list = elm_theme_extension_list_get(NULL);
if (list == NULL)
}
EINA_LIST_FOREACH(list, l, list_data)
{
- if (strcmp("./theme_example.edj", (const char*) list_data) == 0)
+ if (strcmp("./theme/theme_example.edj", (const char*) list_data) == 0)
{
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
return;
START_TEST(utc_elm_theme_extension_add_n)
{
CREATE_CHECKED_ARGS_ARRAY(0, 1);
- UNITEST_FUNC_NEG_CA(elm_theme_extension_add, NULL, "./theme_example.edj");
+ UNITEST_FUNC_NEG_CA(elm_theme_extension_add, NULL, "./theme/theme_example.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
* works properly and doesn't cause segmentation fault
* @n Input Data:
* @li NULL as the default theme
- * @li "./theme_example.edj" as path to edje file
+ * @li "./theme/theme_example.edj" as path to edje file
*
* @procedure
* @step 1 Append extension to default theme
* @step 2 Delete just added theme extension
*
- * @passcondition "./theme_example.edj" does not exist in extensions list and there is no segmentation fault
+ * @passcondition "./theme/theme_example.edj" does not exist in extensions list and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_theme_extension_del_p)
void *list_data = NULL;
Eina_Bool theme_found= EINA_FALSE;
- elm_theme_extension_add(NULL, "./theme_example.edj");
+ elm_theme_extension_add(NULL, "./theme/theme_example.edj");
/*TODO write test for elm_theme_extension_list_get*/
list = elm_theme_extension_list_get(NULL);
if (list == NULL)
}
EINA_LIST_FOREACH(list, l, list_data)
{
- if (strcmp("./theme_example.edj", (const char*) list_data) == 0)
+ if (strcmp("./theme/theme_example.edj", (const char*) list_data) == 0)
{
theme_found = EINA_TRUE;
}
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a theme extension..", __FILE__, __LINE__);
return;
}
- elm_theme_extension_del(NULL, "./theme_example.edj");
+ elm_theme_extension_del(NULL, "./theme/theme_example.edj");
/*TODO write test for elm_theme_extension_list_get*/
list = elm_theme_extension_list_get(NULL);
//In a case if no extensions presents function return NULL
//Assume more than one extension presents
EINA_LIST_FOREACH(list, l, list_data)
{
- if (strcmp("./theme_example.edj", (const char*) list_data) == 0)
+ if (strcmp("./theme/theme_example.edj", (const char*) list_data) == 0)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
evas_object_resize(main_win, 400, 400);
evas_object_show(main_win);
- file = eina_file_open("./theme_example.edj", EINA_FALSE);
+ file = eina_file_open("./theme/theme_example.edj", EINA_FALSE);
if (!file)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
Elm_Theme * theme_test = elm_theme_new();
- elm_theme_extension_add(theme, "./theme_example.edj");
- elm_theme_extension_add(theme_test, "./theme_example.edj");
+ elm_theme_extension_add(theme, "./theme/theme_example.edj");
+ elm_theme_extension_add(theme_test, "./theme/theme_example.edj");
if ((theme == NULL) || (theme_test == NULL))
{
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
* @step 1 Set path to edj. file for created theme
* @step 2 Get the theme search order for the theme object
*
- * @passcondition Returned string contains "./theme_example.edj:default" and there is no segmentation fault
+ * @passcondition Returned string contains "./theme/theme_example.edj:default" and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_theme_get_p2)
{
return;
}
- elm_theme_set(theme, "./theme_example.edj");
+ elm_theme_set(theme, "./theme/theme_example.edj");
themeorder = elm_theme_get(theme);
if (themeorder == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
return;
}
- if (strcmp(themeorder, "./theme_example.edj:default") != 0)
+ if (strcmp(themeorder, "./theme/theme_example.edj:default") != 0)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, incorrect theme name has received..", __FILE__, __LINE__);
return;
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- file = eina_file_open("./theme_example.edj", EINA_FALSE);
+ file = eina_file_open("./theme/theme_example.edj", EINA_FALSE);
if (!file)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
- file = eina_file_open("./theme_example.edj", EINA_FALSE);
+ file = eina_file_open("./theme/theme_example.edj", EINA_FALSE);
if (!file)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
* @objective Positive test case checks if getting path for given .edj file works properly
* and doesn't cause segmentation fault
* @n Input Data:
- * @li "./theme_example.edj" as theme element name
+ * @li "./theme/theme_example.edj" as theme element name
* @li valid pointer to Eina_Bool
*
* @procedure
char *path = NULL;
Eina_Bool in_search_path = EINA_FALSE;
- path = elm_theme_list_item_path_get("./theme_example.edj", &in_search_path);
+ path = elm_theme_list_item_path_get("./theme/theme_example.edj", &in_search_path);
if (path == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
Eina_Bool in_search_path = EINA_FALSE;
CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA_RET(NULL, elm_theme_list_item_path_get, "./theme_example.edj", &in_search_path)
+ UNITEST_FUNC_NEG_CA_RET(NULL, elm_theme_list_item_path_get, "./theme/theme_example.edj", &in_search_path)
if (result_of_testing == TEST_FAIL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
* @objective Negative test case if getting path of NULL pointer instead of in_search_parameter works properly
* and doesn't cause segmentation fault
* @n Input Data:
- * @li "./theme_example.edj"
+ * @li "./theme/theme_example.edj"
* @li NULL instead of the in_search_parameter parameter
*
* @procedure
{
char *path = NULL;
- path = elm_theme_list_item_path_get("./theme_example.edj", NULL);
+ path = elm_theme_list_item_path_get("./theme/theme_example.edj", NULL);
if (path == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
* @objective Positive test case checks if prepending overlay for default theme doesn't cause segmentation fault
* @n Input Data:
* @li NULL as the default theme
- * @li "./theme_example.edj" as path to edje file
+ * @li "./theme/theme_example.edj" as path to edje file
*
* @procedure
* @step 1 Prepend an overlay to the list of overlays of default theme
*/
START_TEST(utc_elm_theme_overlay_add_p)
{
- elm_theme_overlay_add(NULL, "./theme_example.edj");
+ elm_theme_overlay_add(NULL, "./theme/theme_example.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
START_TEST(utc_elm_theme_overlay_add_n)
{
CREATE_CHECKED_ARGS_ARRAY(0, 1);
- UNITEST_FUNC_NEG_CA(elm_theme_overlay_add, NULL, "./theme_example.edj");
+ UNITEST_FUNC_NEG_CA(elm_theme_overlay_add, NULL, "./theme/theme_example.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
* @objective Positive test case checks if deleting existing overlay doesn't cause segmentation fault
* @n Input Data:
* @li NULL as default theme
- * @li "./theme_example.edj" string
+ * @li "./theme/theme_example.edj" string
*
* @procedure
- * @step 1 Add "./theme_example.edj" overlay to default theme
- * @step 2 Delete "./theme_example.edj" overlay from default theme
+ * @step 1 Add "./theme/theme_example.edj" overlay to default theme
+ * @step 2 Delete "./theme/theme_example.edj" overlay from default theme
*
* @passcondition There is no segmentation fault
* @}
{
const Eina_List *list = NULL;
- elm_theme_overlay_add(NULL, "./theme_example.edj");
+ elm_theme_overlay_add(NULL, "./theme/theme_example.edj");
list = elm_theme_overlay_list_get(NULL);
if (list == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an list to overlay..", __FILE__, __LINE__);
return;
}
- elm_theme_overlay_del(NULL, "./theme_example.edj");
+ elm_theme_overlay_del(NULL, "./theme/theme_example.edj");
list = elm_theme_overlay_list_get(NULL);
if (list != NULL)
{
START_TEST(utc_elm_theme_overlay_del_n2)
{
CREATE_CHECKED_ARGS_ARRAY(0, 1);
- UNITEST_FUNC_NEG_CA(elm_theme_overlay_del, NULL, "./theme_example.edj");
+ UNITEST_FUNC_NEG_CA(elm_theme_overlay_del, NULL, "./theme/theme_example.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
evas_object_resize(main_win, 400, 400);
evas_object_show(main_win);
- file = eina_file_open("./theme_example.edj", EINA_FALSE);
+ file = eina_file_open("./theme/theme_example.edj", EINA_FALSE);
if (!file)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
if (!ecore_file_exists(DEFAULT_THEME_PATH))
{
- if (ecore_file_cp("./default.edj", DEFAULT_THEME_PATH))
+ if (ecore_file_cp("./theme/default.edj", DEFAULT_THEME_PATH))
{
is_default_added = EINA_TRUE;
}
* and doesn't cause segmentation fault
* @n Input Data:
* @li NULL as the default theme
- * @li "./theme_example.edj" as theme search string
+ * @li "./theme/theme_example.edj" as theme search string
*
* @procedure
* @step 1 Set theme search order for default theme
* @step 2 Get the theme search order
*
- * @passcondition Returned value is not NULL and equal to ./theme_example.edj:default and there is no segmentation fault
+ * @passcondition Returned value is not NULL and equal to ./theme/theme_example.edj:default and there is no segmentation fault
* @}
*/
START_TEST(utc_elm_theme_set_p)
{
const char * theme = NULL;
- elm_theme_set(NULL, "./theme_example.edj");
+ elm_theme_set(NULL, "./theme/theme_example.edj");
theme = elm_theme_get(NULL);
if (theme == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
return;
}
- if (strcmp(theme, "./theme_example.edj:default") != 0)
+ if (strcmp(theme, "./theme/theme_example.edj:default") != 0)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, incorrect theme name has received..", __FILE__, __LINE__);
return;
START_TEST(utc_elm_theme_set_n)
{
CREATE_CHECKED_ARGS_ARRAY(0, 1);
- UNITEST_FUNC_NEG_CA(elm_theme_set, NULL, "./theme_example.edj");
+ UNITEST_FUNC_NEG_CA(elm_theme_set, NULL, "./theme/theme_example.edj");
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
{
return;
}
- elm_thumb_file_set(thumb, "tizen_efl.png", NULL);
+ elm_thumb_file_set(thumb, "./thumb/tizen_efl.png", NULL);
elm_thumb_file_get(thumb, &file, NULL);
- if (!file || strcmp(file, "tizen_efl.png") != 0)
+ if (!file || strcmp(file, "./thumb/tizen_efl.png") != 0)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
{
return;
}
- elm_thumb_file_set(thumb, "tizen_efl.png", NULL);
+ elm_thumb_file_set(thumb, "./thumb/tizen_efl.png", NULL);
elm_thumb_file_get(thumb, &file, NULL);
- if (!file || strcmp(file, "tizen_efl.png") != 0)
+ if (!file || strcmp(file, "./thumb/tizen_efl.png") != 0)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
*/
START_TEST(utc_elm_thumb_file_set_n)
{
- UNITEST_FUNC_NEG(elm_thumb_file_set, thumb, "tizen_efl.png", NULL);
+ UNITEST_FUNC_NEG(elm_thumb_file_set, thumb, "./thumb/tizen_efl.png", NULL);
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
END_TEST
static Evas_Object *toolbar = NULL;
Elm_Object_Item *itemNew = NULL;
-char* iconToSet = "./tizen_efl.png";
+char* iconToSet = "./toolbar/tizen_efl.png";
Evas_Object *iconGet = NULL;
Eina_Bool iconIsSet = EINA_FALSE;
static Eina_Bool _set_and_quit_timer_cb(void* data)
{
Elm_Object_Item *item_set = (Elm_Object_Item *)data;
- iconIsSet = elm_toolbar_item_icon_file_set(item_set, "./toolbar_image.edj", "tizen_efl");
+ iconIsSet = elm_toolbar_item_icon_file_set(item_set, "./toolbar/toolbar_image.edj", "tizen_efl");
ecore_main_loop_quit();
return ECORE_CALLBACK_CANCEL;
* @procedure
* @step 1 Creating new window and toolbar.
* @step 2 Create new toolbar item.
- * @step 3 Set icon file for created item(./tizen_efl.png).
+ * @step 3 Set icon file for created item(./toolbar/tizen_efl.png).
* @step 4 Get icon file for created item.
* @step 5 Deleting window and toolbar.
*
return;
}
ecore_evas_init();
- file = eina_file_open("tizen_efl.png", EINA_FALSE);
+ file = eina_file_open("./toolbar/tizen_efl.png", EINA_FALSE);
if (!file)
{
* @n Input data:
* @li toolbar
* @li toolbar item
- * @li path to existed image file("./tizen_efl.png")
+ * @li path to existed image file("./toolbar/tizen_efl.png")
* @li "toolbar" as label of the item
* @li NULL as function to call when the item is clicked
* @li NULL as data to associate with the item for related callbacks
itemNew = elm_toolbar_item_append(toolbar, NULL, "toolbar", NULL, NULL);
elm_toolbar_item_append(toolbar, NULL, "toolbar", NULL, NULL);
- nextItem = elm_toolbar_item_insert_after(toolbar, itemNew, "./tizen_efl.png", "toolbar", NULL, NULL);
+ nextItem = elm_toolbar_item_insert_after(toolbar, itemNew, "./toolbar/tizen_efl.png", "toolbar", NULL, NULL);
if (elm_toolbar_item_next_get(itemNew) != nextItem || nextItem == NULL)
{
{
return;
}
- images = eina_list_append(images, eina_stringshare_add("./tizen_efl.png"));
+ images = eina_list_append(images, eina_stringshare_add("./transit/tizen_efl.png"));
if (!images)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an image list..", __FILE__, __LINE__);
{
return;
}
- images = eina_list_append(images, eina_stringshare_add("./tizen_efl.png"));
+ images = eina_list_append(images, eina_stringshare_add("./transit/tizen_efl.png"));
if (!images)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create an image list..", __FILE__, __LINE__);
#include <Elementary.h>
#include "../utc_elm_common.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
#include <Elementary.h>
#include "../utc_elm_common.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static Eina_Bool ret = EINA_FALSE;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
* URI that will be the video source works properly and without segmentation fault
* @n Input Data:
* @li the video object
- * @li "./Helicopter.mp4" as the file to target
+ * @li "./video/Helicopter.mp4" as the file to target
*
* @procedure
* @step 1 Call elm_video_file_set with valid values
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static Eina_Bool ret_while_playing = EINA_FALSE;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static Eina_Bool ret_while_playing = EINA_FALSE;
#include <Elementary.h>
#include "../utc_elm_common.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static Eina_Bool is_playing = EINA_FALSE;
#include <Elementary.h>
#include "../utc_elm_common.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static double position = 0.0;
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
/**
#include "../utc_elm_common.h"
#include "../../utc_negative_unitest.h"
-#define MY_VIDEO "./Helicopter.mp4"
+#define MY_VIDEO "./video/Helicopter.mp4"
static Evas_Object *main_win = NULL, *video = NULL;
static Eina_Bool ret_while_playing = EINA_FALSE;
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./inwin.edj");
+ elm_theme_extension_add(NULL, "./win/inwin.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./inwin.edj");
+ elm_theme_extension_add(NULL, "./win/inwin.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
printf(" ============ Startup ============ \n");
UTC_ELM_INIT();
main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./inwin.edj");
+ elm_theme_extension_add(NULL, "./win/inwin.edj");
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);