utc_evas_object_textblock: Merge TCs to reduce duplicate test operations 18/191018/3
authorApurv Khatri <apurv.khatri@samsung.com>
Wed, 10 Oct 2018 11:41:57 +0000 (17:11 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Oct 2018 07:38:30 +0000 (07:38 +0000)
Change-Id: I48f3099704c1717aae6ac11657e190572fb58fde

29 files changed:
TC/evas/canvas/evas_object_textblock/tslist
TC/evas/canvas/evas_object_textblock/tslist_mobile
TC/evas/canvas/evas_object_textblock/tslist_tv
TC/evas/canvas/evas_object_textblock/tslist_wear
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_add.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_set.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get.c [deleted file]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_set.c [deleted file]

index 8bfef0cba271c5a7619f1816abe74759484e7ff3..5a4521609eb5bc23081c6e5b44a9a2f5f910d94a 100644 (file)
@@ -1,31 +1,24 @@
 utc_evas_object_paragraph_direction.c
-utc_evas_object_textblock_add.c
-utc_evas_object_textblock_bidi_delimiters_get.c
-utc_evas_object_textblock_bidi_delimiters_set.c
+utc_evas_object_textblock_bidi_delimiters_get_set.c
 utc_evas_object_textblock_clear.c
 utc_evas_object_textblock_cursor_get.c
 utc_evas_object_textblock_cursor_new.c
-utc_evas_object_textblock_legacy_newline_get.c
-utc_evas_object_textblock_legacy_newline_set.c
+utc_evas_object_textblock_legacy_newline_get_set.c
 utc_evas_object_textblock_line_number_geometry_get.c
 utc_evas_object_textblock_obstacle_add.c
 utc_evas_object_textblock_obstacle_del.c
 utc_evas_object_textblock_obstacles_update.c
-utc_evas_object_textblock_replace_char_get.c
-utc_evas_object_textblock_replace_char_set.c
+utc_evas_object_textblock_replace_char_get_set.c
 utc_evas_object_textblock_size_formatted_get.c
 utc_evas_object_textblock_size_native_get.c
-utc_evas_object_textblock_style_get.c
+utc_evas_object_textblock_style_get_set.c
 utc_evas_object_textblock_style_insets_get.c
-utc_evas_object_textblock_style_set.c
 utc_evas_object_textblock_style_user_peek.c
 utc_evas_object_textblock_style_user_pop.c
 utc_evas_object_textblock_style_user_push.c
-utc_evas_object_textblock_text_markup_get.c
+utc_evas_object_textblock_text_markup_get_set.c
 utc_evas_object_textblock_text_markup_prepend.c
-utc_evas_object_textblock_text_markup_set.c
-utc_evas_object_textblock_valign_get.c
-utc_evas_object_textblock_valign_set.c
+utc_evas_object_textblock_valign_get_set.c
 utc_evas_textblock_cursor_at_format_set.c
 utc_evas_textblock_cursor_char_coord_set.c
 utc_evas_textblock_cursor_char_delete.c
@@ -61,8 +54,7 @@ utc_evas_textblock_cursor_paragraph_prev.c
 utc_evas_textblock_cursor_paragraph_text_get.c
 utc_evas_textblock_cursor_paragraph_text_length_get.c
 utc_evas_textblock_cursor_pen_geometry_get.c
-utc_evas_textblock_cursor_pos_get.c
-utc_evas_textblock_cursor_pos_set.c
+utc_evas_textblock_cursor_pos_get_set.c
 utc_evas_textblock_cursor_range_delete.c
 utc_evas_textblock_cursor_range_formats_get.c
 utc_evas_textblock_cursor_range_geometry_get.c
@@ -85,8 +77,7 @@ utc_evas_textblock_node_format_remove_pair.c
 utc_evas_textblock_node_format_text_get.c
 utc_evas_textblock_string_escape_get.c
 utc_evas_textblock_style_free.c
-utc_evas_textblock_style_get.c
+utc_evas_textblock_style_get_set.c
 utc_evas_textblock_style_new.c
-utc_evas_textblock_style_set.c
 utc_evas_textblock_text_markup_to_utf8.c
 utc_evas_textblock_text_utf8_to_markup.c
index 8bfef0cba271c5a7619f1816abe74759484e7ff3..5a4521609eb5bc23081c6e5b44a9a2f5f910d94a 100644 (file)
@@ -1,31 +1,24 @@
 utc_evas_object_paragraph_direction.c
-utc_evas_object_textblock_add.c
-utc_evas_object_textblock_bidi_delimiters_get.c
-utc_evas_object_textblock_bidi_delimiters_set.c
+utc_evas_object_textblock_bidi_delimiters_get_set.c
 utc_evas_object_textblock_clear.c
 utc_evas_object_textblock_cursor_get.c
 utc_evas_object_textblock_cursor_new.c
-utc_evas_object_textblock_legacy_newline_get.c
-utc_evas_object_textblock_legacy_newline_set.c
+utc_evas_object_textblock_legacy_newline_get_set.c
 utc_evas_object_textblock_line_number_geometry_get.c
 utc_evas_object_textblock_obstacle_add.c
 utc_evas_object_textblock_obstacle_del.c
 utc_evas_object_textblock_obstacles_update.c
-utc_evas_object_textblock_replace_char_get.c
-utc_evas_object_textblock_replace_char_set.c
+utc_evas_object_textblock_replace_char_get_set.c
 utc_evas_object_textblock_size_formatted_get.c
 utc_evas_object_textblock_size_native_get.c
-utc_evas_object_textblock_style_get.c
+utc_evas_object_textblock_style_get_set.c
 utc_evas_object_textblock_style_insets_get.c
-utc_evas_object_textblock_style_set.c
 utc_evas_object_textblock_style_user_peek.c
 utc_evas_object_textblock_style_user_pop.c
 utc_evas_object_textblock_style_user_push.c
-utc_evas_object_textblock_text_markup_get.c
+utc_evas_object_textblock_text_markup_get_set.c
 utc_evas_object_textblock_text_markup_prepend.c
-utc_evas_object_textblock_text_markup_set.c
-utc_evas_object_textblock_valign_get.c
-utc_evas_object_textblock_valign_set.c
+utc_evas_object_textblock_valign_get_set.c
 utc_evas_textblock_cursor_at_format_set.c
 utc_evas_textblock_cursor_char_coord_set.c
 utc_evas_textblock_cursor_char_delete.c
@@ -61,8 +54,7 @@ utc_evas_textblock_cursor_paragraph_prev.c
 utc_evas_textblock_cursor_paragraph_text_get.c
 utc_evas_textblock_cursor_paragraph_text_length_get.c
 utc_evas_textblock_cursor_pen_geometry_get.c
-utc_evas_textblock_cursor_pos_get.c
-utc_evas_textblock_cursor_pos_set.c
+utc_evas_textblock_cursor_pos_get_set.c
 utc_evas_textblock_cursor_range_delete.c
 utc_evas_textblock_cursor_range_formats_get.c
 utc_evas_textblock_cursor_range_geometry_get.c
@@ -85,8 +77,7 @@ utc_evas_textblock_node_format_remove_pair.c
 utc_evas_textblock_node_format_text_get.c
 utc_evas_textblock_string_escape_get.c
 utc_evas_textblock_style_free.c
-utc_evas_textblock_style_get.c
+utc_evas_textblock_style_get_set.c
 utc_evas_textblock_style_new.c
-utc_evas_textblock_style_set.c
 utc_evas_textblock_text_markup_to_utf8.c
 utc_evas_textblock_text_utf8_to_markup.c
index 149d42ebb685d3bd6ba6a92ff1a1f0e119b8d4b5..619fa729d9f8425b82d90c142ca70813490953f0 100644 (file)
@@ -1,31 +1,24 @@
 #utc_evas_object_paragraph_direction.c
-utc_evas_object_textblock_add.c
-utc_evas_object_textblock_bidi_delimiters_get.c
-utc_evas_object_textblock_bidi_delimiters_set.c
+utc_evas_object_textblock_bidi_delimiters_get_set.c
 utc_evas_object_textblock_clear.c
 utc_evas_object_textblock_cursor_get.c
 utc_evas_object_textblock_cursor_new.c
-utc_evas_object_textblock_legacy_newline_get.c
-utc_evas_object_textblock_legacy_newline_set.c
+utc_evas_object_textblock_legacy_newline_get_set.c
 utc_evas_object_textblock_line_number_geometry_get.c
 #utc_evas_object_textblock_obstacle_add.c
 #utc_evas_object_textblock_obstacle_del.c
 #utc_evas_object_textblock_obstacles_update.c
-utc_evas_object_textblock_replace_char_get.c
-utc_evas_object_textblock_replace_char_set.c
+utc_evas_object_textblock_replace_char_get_set.c
 utc_evas_object_textblock_size_formatted_get.c
 utc_evas_object_textblock_size_native_get.c
-utc_evas_object_textblock_style_get.c
+utc_evas_object_textblock_style_get_set.c
 #utc_evas_object_textblock_style_insets_get.c
-utc_evas_object_textblock_style_set.c
 utc_evas_object_textblock_style_user_peek.c
 utc_evas_object_textblock_style_user_pop.c
 utc_evas_object_textblock_style_user_push.c
-utc_evas_object_textblock_text_markup_get.c
+utc_evas_object_textblock_text_markup_get_set.c
 utc_evas_object_textblock_text_markup_prepend.c
-utc_evas_object_textblock_text_markup_set.c
-utc_evas_object_textblock_valign_get.c
-utc_evas_object_textblock_valign_set.c
+utc_evas_object_textblock_valign_get_set.c
 utc_evas_textblock_cursor_at_format_set.c
 utc_evas_textblock_cursor_char_coord_set.c
 utc_evas_textblock_cursor_char_delete.c
@@ -61,8 +54,7 @@ utc_evas_textblock_cursor_paragraph_prev.c
 utc_evas_textblock_cursor_paragraph_text_get.c
 utc_evas_textblock_cursor_paragraph_text_length_get.c
 utc_evas_textblock_cursor_pen_geometry_get.c
-utc_evas_textblock_cursor_pos_get.c
-utc_evas_textblock_cursor_pos_set.c
+utc_evas_textblock_cursor_pos_get_set.c
 utc_evas_textblock_cursor_range_delete.c
 utc_evas_textblock_cursor_range_formats_get.c
 utc_evas_textblock_cursor_range_geometry_get.c
@@ -85,8 +77,7 @@ utc_evas_textblock_node_format_remove_pair.c
 utc_evas_textblock_node_format_text_get.c
 utc_evas_textblock_string_escape_get.c
 utc_evas_textblock_style_free.c
-utc_evas_textblock_style_get.c
+utc_evas_textblock_style_get_set.c
 utc_evas_textblock_style_new.c
-utc_evas_textblock_style_set.c
 utc_evas_textblock_text_markup_to_utf8.c
 utc_evas_textblock_text_utf8_to_markup.c
index 149d42ebb685d3bd6ba6a92ff1a1f0e119b8d4b5..619fa729d9f8425b82d90c142ca70813490953f0 100644 (file)
@@ -1,31 +1,24 @@
 #utc_evas_object_paragraph_direction.c
-utc_evas_object_textblock_add.c
-utc_evas_object_textblock_bidi_delimiters_get.c
-utc_evas_object_textblock_bidi_delimiters_set.c
+utc_evas_object_textblock_bidi_delimiters_get_set.c
 utc_evas_object_textblock_clear.c
 utc_evas_object_textblock_cursor_get.c
 utc_evas_object_textblock_cursor_new.c
-utc_evas_object_textblock_legacy_newline_get.c
-utc_evas_object_textblock_legacy_newline_set.c
+utc_evas_object_textblock_legacy_newline_get_set.c
 utc_evas_object_textblock_line_number_geometry_get.c
 #utc_evas_object_textblock_obstacle_add.c
 #utc_evas_object_textblock_obstacle_del.c
 #utc_evas_object_textblock_obstacles_update.c
-utc_evas_object_textblock_replace_char_get.c
-utc_evas_object_textblock_replace_char_set.c
+utc_evas_object_textblock_replace_char_get_set.c
 utc_evas_object_textblock_size_formatted_get.c
 utc_evas_object_textblock_size_native_get.c
-utc_evas_object_textblock_style_get.c
+utc_evas_object_textblock_style_get_set.c
 #utc_evas_object_textblock_style_insets_get.c
-utc_evas_object_textblock_style_set.c
 utc_evas_object_textblock_style_user_peek.c
 utc_evas_object_textblock_style_user_pop.c
 utc_evas_object_textblock_style_user_push.c
-utc_evas_object_textblock_text_markup_get.c
+utc_evas_object_textblock_text_markup_get_set.c
 utc_evas_object_textblock_text_markup_prepend.c
-utc_evas_object_textblock_text_markup_set.c
-utc_evas_object_textblock_valign_get.c
-utc_evas_object_textblock_valign_set.c
+utc_evas_object_textblock_valign_get_set.c
 utc_evas_textblock_cursor_at_format_set.c
 utc_evas_textblock_cursor_char_coord_set.c
 utc_evas_textblock_cursor_char_delete.c
@@ -61,8 +54,7 @@ utc_evas_textblock_cursor_paragraph_prev.c
 utc_evas_textblock_cursor_paragraph_text_get.c
 utc_evas_textblock_cursor_paragraph_text_length_get.c
 utc_evas_textblock_cursor_pen_geometry_get.c
-utc_evas_textblock_cursor_pos_get.c
-utc_evas_textblock_cursor_pos_set.c
+utc_evas_textblock_cursor_pos_get_set.c
 utc_evas_textblock_cursor_range_delete.c
 utc_evas_textblock_cursor_range_formats_get.c
 utc_evas_textblock_cursor_range_geometry_get.c
@@ -85,8 +77,7 @@ utc_evas_textblock_node_format_remove_pair.c
 utc_evas_textblock_node_format_text_get.c
 utc_evas_textblock_string_escape_get.c
 utc_evas_textblock_style_free.c
-utc_evas_textblock_style_get.c
+utc_evas_textblock_style_get_set.c
 utc_evas_textblock_style_new.c
-utc_evas_textblock_style_set.c
 utc_evas_textblock_text_markup_to_utf8.c
 utc_evas_textblock_text_utf8_to_markup.c
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_add.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_add.c
deleted file mode 100644 (file)
index ab9bd64..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_add evas_object_textblock_add()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_add
- * @{
- * @objective Positive test case checks if function creates new textblock Evas_Object properly.
- * @n Input Data:
- * @li pointer to Evas object.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create a new textblock object
- * @step 3 Check if returned value is not NULL
- *
- * @passcondition Function returns valid pointer to Evas_Object, not NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_add_p)
-{
-   Evas *evas = evas_new();
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
-     }
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_add
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to Evas.
- * @n Input Data:
- * @li NULL as pointer to Evas.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_add_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_add, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_add()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_add_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_add_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get.c
deleted file mode 100644 (file)
index d5dfe92..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_bidi_delimiters_get evas_object_textblock_bidi_delimiters_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_bidi_delimiters_get
- * @{
- * @objective Positive test case checks if function returns proper BiDi delimiters of given textblock object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Set text BiDi delimiters of the object
- * @step 4 Get text BiDi delimiters of the object and compare it with value that was set
- *
- * @passcondition Set and got values of BiDi delimiters are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_bidi_delimiters_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *src = ",|!@#%$^&*()_+";
-
-   evas_object_textblock_bidi_delimiters_set(obj, src);
-   const char *ret = evas_object_textblock_bidi_delimiters_get(obj);
-
-   if (!ret || strcmp(ret, src))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. delimiters=%s", __FILE__, __LINE__, ret);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_bidi_delimiters_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to textblock Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_bidi_delimiters_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_bidi_delimiters_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_bidi_delimiters_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_bidi_delimiters_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_get_set.c
new file mode 100644 (file)
index 0000000..0956e39
--- /dev/null
@@ -0,0 +1,171 @@
+#include <check.h>
+#include <Evas.h>
+#include <string.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_bidi_delimiters_set evas_object_textblock_bidi_delimiters_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_bidi_delimiters_set
+ * @{
+ * @objective Positive test case checks if function sets BiDi delimiters for given textblock object properly.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li ",|!@#$%$^&*()_+" as delimiters string.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Add new textblock object to the evas
+ * @step 3 Set text BiDi delimiters of the object
+ * @step 4 Get text BiDi delimiters of the object and compare it with value that was set
+ *
+ * @passcondition Set and got values of BiDi delimiters are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_bidi_delimiters_set_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   const char *src = ",|!@#%$^&*()_+";
+
+   evas_object_textblock_bidi_delimiters_set(obj, src);
+   const char *ret = evas_object_textblock_bidi_delimiters_get(obj);
+
+   if (!ret || strcmp(ret, src))
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. delimiters=%s", __FILE__, __LINE__, ret);
+     }
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_bidi_delimiters_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li ",|" as delimiters string.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Add new textblock object to the evas
+ * @step 3 Call function 2 times and pass (in turn) NULL instead of one from valid arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_bidi_delimiters_set_n)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   const char *src = ",|";
+
+   UNITEST_FUNC_NEG(evas_object_textblock_bidi_delimiters_set, obj, src);
+
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_bidi_delimiters_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to textblock Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_bidi_delimiters_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_bidi_delimiters_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_add
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to Evas.
+ * @n Input Data:
+ * @li NULL as pointer to Evas.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_add_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_add, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_bidi_delimiters_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_bidi_delimiters_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_set_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_set_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_get_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_add_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_bidi_delimiters_set.c
deleted file mode 100644 (file)
index 189f6bc..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_bidi_delimiters_set evas_object_textblock_bidi_delimiters_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_bidi_delimiters_set
- * @{
- * @objective Positive test case checks if function sets BiDi delimiters for given textblock object properly.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li ",|!@#$%$^&*()_+" as delimiters string.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Set text BiDi delimiters of the object
- * @step 4 Get text BiDi delimiters of the object and compare it with value that was set
- *
- * @passcondition Set and got values of BiDi delimiters are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_bidi_delimiters_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *src = ",|!@#%$^&*()_+";
-
-   evas_object_textblock_bidi_delimiters_set(obj, src);
-   const char *ret = evas_object_textblock_bidi_delimiters_get(obj);
-
-   if (!ret || strcmp(ret, src))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. delimiters=%s", __FILE__, __LINE__, ret);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_bidi_delimiters_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li ",|" as delimiters string.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Call function 2 times and pass (in turn) NULL instead of one from valid arguments.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_bidi_delimiters_set_n)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *src = ",|";
-
-   UNITEST_FUNC_NEG(evas_object_textblock_bidi_delimiters_set, obj, src);
-
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_bidi_delimiters_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_bidi_delimiters_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_bidi_delimiters_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get.c
deleted file mode 100644 (file)
index fb2cdf5..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_legacy_newline_get evas_object_textblock_legacy_newline_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_legacy_newline_get
- * @{
- * @objective Positive test case checks if function returns proper newline mode of given textblock object.
- * @n Input Data:
- * @li pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set newline mode to EINA_TRUE
- * @step 4 Check if newline mode enabled
- * @step 5 Set newline mode to EINA_FALSE
- * @step 6 Check if newline mode disabled
- *
- * @passcondition Function returns proper newline mode.
- * @}
- */
-START_TEST(utc_evas_object_textblock_legacy_newline_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_legacy_newline_set(obj, EINA_TRUE);
-   Eina_Bool ret = evas_object_textblock_legacy_newline_get(obj);
-
-   if (ret != EINA_TRUE)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_legacy_newline_set(obj, EINA_FALSE);
-   ret = evas_object_textblock_legacy_newline_get(obj);
-   evas_free(evas);
-
-   if (ret != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_legacy_newline_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_object_textblock_legacy_newline_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_textblock_legacy_newline_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_legacy_newline_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_legacy_newline_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_get_set.c
new file mode 100644 (file)
index 0000000..769d638
--- /dev/null
@@ -0,0 +1,141 @@
+#include <check.h>
+#include <Evas.h>
+#include <string.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_legacy_newline_set evas_object_textblock_legacy_newline_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_legacy_newline_set
+ * @{
+ * @objective Positive test case checks if function sets newline mode of given textblock object properly.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li EINA_TRUE/EINA_FALSE for first/second call.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Set newline mode to EINA_TRUE
+ * @step 4 Check if newline mode enabled
+ * @step 5 Set newline mode to EINA_FALSE
+ * @step 6 Check if newline mode disabled
+ *
+ * @passcondition Function sets newline mode properly.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_legacy_newline_set_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   evas_object_textblock_legacy_newline_set(obj, EINA_TRUE);
+   Eina_Bool ret = evas_object_textblock_legacy_newline_get(obj);
+
+   if (ret != EINA_TRUE)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   evas_object_textblock_legacy_newline_set(obj, EINA_FALSE);
+   ret = evas_object_textblock_legacy_newline_get(obj);
+   evas_free(evas);
+
+   if (ret != EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_legacy_newline_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to textblock Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to textblock Evas_Object
+ * @li EINA_TRUE to enable legacy newline
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_legacy_newline_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(evas_object_textblock_legacy_newline_set, NULL, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_legacy_newline_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_legacy_newline_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_textblock_legacy_newline_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_legacy_newline_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_legacy_newline_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_set_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_set_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_legacy_newline_set.c
deleted file mode 100644 (file)
index 2663f5f..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_legacy_newline_set evas_object_textblock_legacy_newline_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_legacy_newline_set
- * @{
- * @objective Positive test case checks if function sets newline mode of given textblock object properly.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li EINA_TRUE/EINA_FALSE for first/second call.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set newline mode to EINA_TRUE
- * @step 4 Check if newline mode enabled
- * @step 5 Set newline mode to EINA_FALSE
- * @step 6 Check if newline mode disabled
- *
- * @passcondition Function sets newline mode properly.
- * @}
- */
-START_TEST(utc_evas_object_textblock_legacy_newline_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_legacy_newline_set(obj, EINA_TRUE);
-   Eina_Bool ret = evas_object_textblock_legacy_newline_get(obj);
-
-   if (ret != EINA_TRUE)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_legacy_newline_set(obj, EINA_FALSE);
-   ret = evas_object_textblock_legacy_newline_get(obj);
-   evas_free(evas);
-
-   if (ret != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_legacy_newline_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to textblock Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to textblock Evas_Object
- * @li EINA_TRUE to enable legacy newline
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_legacy_newline_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(evas_object_textblock_legacy_newline_set, NULL, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_legacy_newline_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_legacy_newline_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_legacy_newline_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get.c
deleted file mode 100644 (file)
index f8e7307..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_replace_char_get evas_object_textblock_replace_char_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_replace_char_get
- * @{
- * @objective Positive test case checks if function returns proper replace characters of given textblock object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set replace characters string of the object
- * @step 4 Get replace characters string of the object and compare it with value that was set
- *
- * @passcondition Set and got values of replace characters are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_replace_char_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "text";
-
-   evas_object_textblock_replace_char_set(obj, str);
-   const char *ret = evas_object_textblock_replace_char_get(obj);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_replace_char_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_replace_char_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_replace_char_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_replace_char_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_replace_char_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_get_set.c
new file mode 100644 (file)
index 0000000..51e066f
--- /dev/null
@@ -0,0 +1,143 @@
+#include <check.h>
+#include <Evas.h>
+#include <string.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_replace_char_get evas_object_textblock_replace_char_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_replace_char_get
+ * @{
+ * @objective Positive test case checks if function returns proper replace characters of given textblock object.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Set replace characters string of the object
+ * @step 4 Get replace characters string of the object and compare it with value that was set
+ *
+ * @passcondition Set and got values of replace characters are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_replace_char_get_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   const char *str = "text";
+
+   evas_object_textblock_replace_char_set(obj, str);
+   const char *ret = evas_object_textblock_replace_char_get(obj);
+
+   if (!ret || strcmp(ret, str))
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_replace_char_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_replace_char_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_replace_char_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_replace_char_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li "text" as replace characters string.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Call function 2 times and pass (in turn) NULL instead of one from arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_replace_char_set_n)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   UNITEST_FUNC_NEG(evas_object_textblock_replace_char_set, obj, "text");
+
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_replace_char_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_replace_char_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_get_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_get_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_set_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_replace_char_set.c
deleted file mode 100644 (file)
index fb027bb..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_replace_char_set evas_object_textblock_replace_char_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_replace_char_set
- * @{
- * @objective Positive test case checks if function sets replace characters for given textblock object properly.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li "text" as replace characters string.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set replace characters string of the object
- * @step 4 Get replace characters string of the object and compare it with value that was set
- *
- * @passcondition Set and got values of replace characters are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_replace_char_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "text";
-
-   evas_object_textblock_replace_char_set(obj, str);
-   const char *ret = evas_object_textblock_replace_char_get(obj);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_replace_char_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li "text" as replace characters string.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Call function 2 times and pass (in turn) NULL instead of one from arguments.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_replace_char_set_n)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(evas_object_textblock_replace_char_set, obj, "text");
-
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_replace_char_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_replace_char_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_replace_char_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get.c
deleted file mode 100644 (file)
index c4b7286..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_style_get evas_object_textblock_style_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_style_get
- * @{
- * @objective Positive test case checks if function returns proper style of given textblock object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Create new style Evas_Textblock_Style
- * @step 4 Set style of the object
- * @step 5 Get style of the object and compare it with value that was set
- *
- * @passcondition Set and got values of style are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_style_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   else if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_object_textblock_style_set(obj, ts);
-
-        if (evas_object_textblock_style_get(obj) != ts)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   evas_textblock_style_free(ts);
-   evas_free(evas);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_style_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to textblock Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_style_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_style_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_style_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_style_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_style_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_style_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_get_set.c
new file mode 100644 (file)
index 0000000..58b7621
--- /dev/null
@@ -0,0 +1,159 @@
+#include <check.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_style_set evas_object_textblock_style_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_style_set
+ * @{
+ * @objective Positive test case checks if function sets style for given textblock object properly.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li pointer to style to be set.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Create new style Evas_Textblock_Style
+ * @step 4 Set style of the object
+ * @step 5 Get style of the object and compare it with value that was set
+ *
+ * @passcondition Set and got values of style are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_style_set_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+   Evas_Textblock_Style *ts = evas_textblock_style_new();
+
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   else if (!ts)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_object_textblock_style_set(obj, ts);
+
+        if (evas_object_textblock_style_get(obj) != ts)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+          }
+        else
+          {
+             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+          }
+     }
+   evas_textblock_style_free(ts);
+   evas_free(evas);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_style_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li pointer to style to be set.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Create new style Evas_Textblock_Style
+ * @step 4 Call tested function 2 times and pass (in turn) NULL instead of one from arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_style_set_n)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+   Evas_Textblock_Style *ts = evas_textblock_style_new();
+
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   else if (!ts)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        UNITEST_FUNC_NEG(evas_object_textblock_style_set, obj, ts);
+
+        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+     }
+   evas_textblock_style_free(ts);
+   evas_free(evas);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_style_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to textblock Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_style_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_style_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_style_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_style_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_style_set_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_style_set_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_style_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_style_set.c
deleted file mode 100644 (file)
index ed336ff..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_style_set evas_object_textblock_style_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_style_set
- * @{
- * @objective Positive test case checks if function sets style for given textblock object properly.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li pointer to style to be set.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Create new style Evas_Textblock_Style
- * @step 4 Set style of the object
- * @step 5 Get style of the object and compare it with value that was set
- *
- * @passcondition Set and got values of style are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_style_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   else if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_object_textblock_style_set(obj, ts);
-
-        if (evas_object_textblock_style_get(obj) != ts)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   evas_textblock_style_free(ts);
-   evas_free(evas);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_style_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li pointer to style to be set.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Create new style Evas_Textblock_Style
- * @step 4 Call tested function 2 times and pass (in turn) NULL instead of one from arguments.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_style_set_n)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   else if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        UNITEST_FUNC_NEG(evas_object_textblock_style_set, obj, ts);
-
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-     }
-   evas_textblock_style_free(ts);
-   evas_free(evas);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_style_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_style_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_style_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_style_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get.c
deleted file mode 100644 (file)
index 4fa6371..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_text_markup_get evas_object_textblock_text_markup_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_text_markup_get
- * @{
- * @objective Positive test case checks if function returns proper markup text of given textblock object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set markup text of the object
- * @step 4 Get markup text of the object and compare it with value that was set
- *
- * @passcondition Set and got values of markup text are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_text_markup_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "test";
-
-   evas_object_textblock_text_markup_set(obj, str);
-   const char *ret = evas_object_textblock_text_markup_get(obj);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_text_markup_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_textblock_text_markup_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_text_markup_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_text_markup_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_text_markup_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_get_set.c
new file mode 100644 (file)
index 0000000..a6d94ec
--- /dev/null
@@ -0,0 +1,144 @@
+#include <check.h>
+#include <Evas.h>
+#include <string.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_text_markup_set evas_object_textblock_text_markup_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_text_markup_set
+ * @{
+ * @objective Positive test case checks if function sets markup text for given textblock object properly.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li "text" as markup text.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Set markup text of the object
+ * @step 4 Get markup text of the object and compare it with value that was set
+ *
+ * @passcondition Set and got values of markup text are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_text_markup_set_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   const char *str = "test";
+
+   evas_object_textblock_text_markup_set(obj, str);
+   const char *ret = evas_object_textblock_text_markup_get(obj);
+
+   if (!ret || strcmp(ret, str))
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_text_markup_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li "text" as markup text.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Create new textblock object on the evas
+ * @step 3 Call function 2 times and pass (in turn) NULL instead of one from arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_text_markup_set_n)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   UNITEST_FUNC_NEG(evas_object_textblock_text_markup_set, obj, "test");
+
+   evas_free(evas);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_text_markup_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_text_markup_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_textblock_text_markup_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_text_markup_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_text_markup_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_set_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_set_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_text_markup_set.c
deleted file mode 100644 (file)
index 79df239..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_text_markup_set evas_object_textblock_text_markup_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_text_markup_set
- * @{
- * @objective Positive test case checks if function sets markup text for given textblock object properly.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li "text" as markup text.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Set markup text of the object
- * @step 4 Get markup text of the object and compare it with value that was set
- *
- * @passcondition Set and got values of markup text are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_text_markup_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "test";
-
-   evas_object_textblock_text_markup_set(obj, str);
-   const char *ret = evas_object_textblock_text_markup_get(obj);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_text_markup_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li "text" as markup text.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Create new textblock object on the evas
- * @step 3 Call function 2 times and pass (in turn) NULL instead of one from arguments.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_text_markup_set_n)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(evas_object_textblock_text_markup_set, obj, "test");
-
-   evas_free(evas);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_text_markup_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_text_markup_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_text_markup_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get.c
deleted file mode 100644 (file)
index b3f80d7..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <math.h>
-#include <float.h>
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_valign_get evas_object_textblock_valign_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_valign_get
- * @{
- * @objective Positive test case checks if function returns proper vertical alignment of given textblock object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Set vertical alignment of the object
- * @step 4 Get vertical alignment of the object and compare it with value that was set
- *
- * @passcondition Set and got values of vertical alignment are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_valign_get_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_valign_set(obj, 0.45);
-   double ret = evas_object_textblock_valign_get(obj);
-   evas_free(evas);
-
-   if (fabs(ret - 0.45) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_valign_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns 0.0 if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns 0.0.
- * @}
- */
-START_TEST(utc_evas_object_textblock_valign_get_n)
-{
-
-   double ret = evas_object_textblock_valign_get(NULL);
-
-   if (fabs(ret) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_valign_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_valign_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_valign_get_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_valign_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_get_set.c
new file mode 100644 (file)
index 0000000..e9e7bac
--- /dev/null
@@ -0,0 +1,185 @@
+#include <check.h>
+#include <Evas.h>
+#include <math.h>
+#include <float.h>
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_object_textblock_valign_set evas_object_textblock_valign_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_textblock_valign_set
+ * @{
+ * @objective Positive test case checks if function sets vertical alignment for given textblock object properly.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li 0.45 as vertical alignment.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Add new textblock object to the evas
+ * @step 3 Set vertical alignment of the object
+ * @step 4 Get vertical alignment of the object and compare it with value that was set
+ *
+ * @passcondition Set and got values of vertical alignment are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_valign_set_p)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   evas_object_textblock_valign_set(obj, 0.45);
+   double ret = evas_object_textblock_valign_get(obj);
+   evas_free(evas);
+
+   if (fabs(ret - 0.45) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_valign_set
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li pointer to textblock Evas_Object;
+ * @li 0.45 as vertical alignment.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_valign_set_n)
+{
+
+   evas_object_textblock_valign_set(NULL, 0.45);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_valign_set
+ * @{
+ * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
+ * and doesn't set vertical alignment more than 1.0 or less than 0.0.
+ * Due to documentations allowed values should be between 0.0 and 1.0.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li 1.1/-0.1 - vertical alignments for first/second calls.
+ *
+ * @procedure
+ * @step 1 Create new Evas object
+ * @step 2 Add new textblock object to the evas
+ * @step 3 Call tested function with alignment more than 1.0
+ * @step 4 Get alignment of the object
+ * @step 5 Call tested function with alignment less than 0.0
+ * @step 6 Get alignment hints of the object
+ *
+ * @passcondition Function doesn't set incorrect vertical alignment hints values.
+ * Got values aren't more than 1.0 or less than 0.0.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_valign_set_n2)
+{
+   Evas *evas = evas_new();
+   Evas_Object *obj = evas_object_textblock_add(evas);
+
+   if (!obj)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   evas_object_textblock_valign_set(obj, 1.1);
+   double ret = evas_object_textblock_valign_get(obj);
+
+   if (fabs(ret - 1.0) > DBL_EPSILON)
+     {
+        evas_free(evas);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
+     }
+   evas_object_textblock_valign_set(obj, -0.1);
+   ret = evas_object_textblock_valign_get(obj);
+   evas_free(evas);
+
+   if (fabs(ret) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_textblock_valign_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns 0.0 if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns 0.0.
+ * @}
+ */
+START_TEST(utc_evas_object_textblock_valign_get_n)
+{
+
+   double ret = evas_object_textblock_valign_get(NULL);
+
+   if (fabs(ret) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_textblock_valign_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_textblock_valign_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_p);
+   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_n);
+   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_n2);
+   tcase_add_test(tcase, utc_evas_object_textblock_valign_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_object_textblock_valign_set.c
deleted file mode 100644 (file)
index fd771f7..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <math.h>
-#include <float.h>
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_object_textblock_valign_set evas_object_textblock_valign_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_textblock_valign_set
- * @{
- * @objective Positive test case checks if function sets vertical alignment for given textblock object properly.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li 0.45 as vertical alignment.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Set vertical alignment of the object
- * @step 4 Get vertical alignment of the object and compare it with value that was set
- *
- * @passcondition Set and got values of vertical alignment are the same.
- * @}
- */
-START_TEST(utc_evas_object_textblock_valign_set_p)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_valign_set(obj, 0.45);
-   double ret = evas_object_textblock_valign_get(obj);
-   evas_free(evas);
-
-   if (fabs(ret - 0.45) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_valign_set
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li pointer to textblock Evas_Object;
- * @li 0.45 as vertical alignment.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_textblock_valign_set_n)
-{
-
-   evas_object_textblock_valign_set(NULL, 0.45);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_textblock_valign_set
- * @{
- * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
- * and doesn't set vertical alignment more than 1.0 or less than 0.0.
- * Due to documentations allowed values should be between 0.0 and 1.0.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li 1.1/-0.1 - vertical alignments for first/second calls.
- *
- * @procedure
- * @step 1 Create new Evas object
- * @step 2 Add new textblock object to the evas
- * @step 3 Call tested function with alignment more than 1.0
- * @step 4 Get alignment of the object
- * @step 5 Call tested function with alignment less than 0.0
- * @step 6 Get alignment hints of the object
- *
- * @passcondition Function doesn't set incorrect vertical alignment hints values.
- * Got values aren't more than 1.0 or less than 0.0.
- * @}
- */
-START_TEST(utc_evas_object_textblock_valign_set_n2)
-{
-   Evas *evas = evas_new();
-   Evas_Object *obj = evas_object_textblock_add(evas);
-
-   if (!obj)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   evas_object_textblock_valign_set(obj, 1.1);
-   double ret = evas_object_textblock_valign_get(obj);
-
-   if (fabs(ret - 1.0) > DBL_EPSILON)
-     {
-        evas_free(evas);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
-     }
-   evas_object_textblock_valign_set(obj, -0.1);
-   ret = evas_object_textblock_valign_get(obj);
-   evas_free(evas);
-
-   if (fabs(ret) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. valign=%f", __FILE__, __LINE__, ret);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_textblock_valign_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_textblock_valign_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_p);
-   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_n);
-   tcase_add_test(tcase, utc_evas_object_textblock_valign_set_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get.c
deleted file mode 100644 (file)
index f39c1eb..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas *evas = NULL;
-static Evas_Object *obj = NULL;
-static Evas_Textblock_Cursor *cur = NULL;
-
-static Eina_Bool inited = EINA_FALSE;
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_textblock_cursor_pos_get evas_textblock_cursor_pos_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- * @step 2 Create new Evas
- * @step 3 Create new textblock object on the evas
- * @step 4 Create new cursor, associated with the object
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-   evas = evas_new();
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas object is not created..", __FILE__, __LINE__);
-     }
-   Evas_Object *obj = evas_object_textblock_add(evas);
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   cur = evas_object_textblock_cursor_new(obj);
-   if (!cur)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas_Textblock_Cursor is not created..", __FILE__, __LINE__);
-     }
-   inited = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_textblock_cursor_free(cur);
-   evas_free(evas);
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_textblock_cursor_pos_get
- * @{
- * @objective Positive test case checks if function returns proper position of given cursor.
- * @n Input Data:
- * @li pointer to textblock cursor
- *
- * @procedure
- * @step 1 Add "test" text to the current cursor position
- * @step 2 Set position of the cursor to 2
- * @step 3 Get position of the cursor and compare with value that was set
- * @step 4 Set position of the cursor to 20
- * @step 5 Get position of the cursor and compare with strlen("test") value
- * @passcondition Function returns proper position of the cursor. Set and got values are the same.
- * @}
- */
-START_TEST(utc_evas_textblock_cursor_pos_get_p)
-{
-   if (inited == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   if (evas_textblock_cursor_text_prepend(cur, "test") != 4)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Text is not prepended to cursor..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_textblock_cursor_pos_set(cur, 2);
-        int ret = evas_textblock_cursor_pos_get(cur);
-
-        if (ret != 2)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Got position: %d", __FILE__, __LINE__, ret);
-          }
-        else
-          {
-             evas_textblock_cursor_pos_set(cur, 20);
-             ret = evas_textblock_cursor_pos_get(cur);
-             if (ret != 4)
-               {
-                  ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Set out of range position: %d", __FILE__, __LINE__, ret);
-               }
-             else
-               {
-                  printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-               }
-          }
-     }
-}
-END_TEST
-
-/**
- * @addtogroup evas_textblock_cursor_pos_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns -1 if it is called with NULL instead of pointer to Evas_Textblock_Cursor.
- * @n Input Data:
- * @li NULL as pointer to cursor.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns -1.
- * @}
- */
-START_TEST(utc_evas_textblock_cursor_pos_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(-1, evas_textblock_cursor_pos_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_textblock_cursor_pos_get()
-{
-   TCase *tcase = tcase_create("utc_evas_textblock_cursor_pos_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_get_p);
-   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_get_set.c
new file mode 100644 (file)
index 0000000..00caaca
--- /dev/null
@@ -0,0 +1,168 @@
+#include <check.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+static Evas *evas = NULL;
+static Evas_Object *obj = NULL;
+static Evas_Textblock_Cursor *cur = NULL;
+
+static Eina_Bool inited = EINA_FALSE;
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_textblock_cursor_pos_get evas_textblock_cursor_pos_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ * @step 2 Create new Evas
+ * @step 3 Create new textblock object on the evas
+ * @step 4 Create new cursor, associated with the object
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+   evas = evas_new();
+   if (!evas)
+     {
+        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas object is not created..", __FILE__, __LINE__);
+     }
+   Evas_Object *obj = evas_object_textblock_add(evas);
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_MSG]:: %s[%d] : Textblock Evas_Object is not created..", __FILE__, __LINE__);
+     }
+   cur = evas_object_textblock_cursor_new(obj);
+   if (!cur)
+     {
+        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas_Textblock_Cursor is not created..", __FILE__, __LINE__);
+     }
+   inited = EINA_TRUE;
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_textblock_cursor_free(cur);
+   evas_free(evas);
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_textblock_cursor_pos_get
+ * @{
+ * @objective Positive test case checks if function returns proper position of given cursor.
+ * @n Input Data:
+ * @li pointer to textblock cursor
+ *
+ * @procedure
+ * @step 1 Add "test" text to the current cursor position
+ * @step 2 Set position of the cursor to 2
+ * @step 3 Get position of the cursor and compare with value that was set
+ * @step 4 Set position of the cursor to 20
+ * @step 5 Get position of the cursor and compare with strlen("test") value
+ * @passcondition Function returns proper position of the cursor. Set and got values are the same.
+ * @}
+ */
+START_TEST(utc_evas_textblock_cursor_pos_get_p)
+{
+   if (inited == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   if (evas_textblock_cursor_text_prepend(cur, "test") != 4)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Text is not prepended to cursor..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_textblock_cursor_pos_set(cur, 2);
+        int ret = evas_textblock_cursor_pos_get(cur);
+
+        if (ret != 2)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Got position: %d", __FILE__, __LINE__, ret);
+          }
+        else
+          {
+             evas_textblock_cursor_pos_set(cur, 20);
+             ret = evas_textblock_cursor_pos_get(cur);
+             if (ret != 4)
+               {
+                  ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Set out of range position: %d", __FILE__, __LINE__, ret);
+               }
+             else
+               {
+                  printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+               }
+          }
+     }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_textblock_cursor_pos_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns -1 if it is called with NULL instead of pointer to Evas_Textblock_Cursor.
+ * @n Input Data:
+ * @li NULL as pointer to cursor.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns -1.
+ * @}
+ */
+START_TEST(utc_evas_textblock_cursor_pos_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(-1, evas_textblock_cursor_pos_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_textblock_cursor_pos_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Textblock_Cursor.
+ * @n Input Data:
+ * @li NULL instead of pointer to cursor
+ * @li 2 as position
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its first argument and -200 instead of its second argument
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_textblock_cursor_pos_set_n)
+{
+
+   evas_textblock_cursor_pos_set(NULL, -200);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_textblock_cursor_pos_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_textblock_cursor_pos_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_get_p);
+   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_get_n);
+   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_set_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_cursor_pos_set.c
deleted file mode 100644 (file)
index 288e00e..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas *evas = NULL;
-static Evas_Object *obj = NULL;
-static Evas_Textblock_Cursor *cur = NULL;
-
-static Eina_Bool inited = EINA_FALSE;
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_textblock_cursor_pos_set evas_textblock_cursor_pos_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- * @step 2 Create new Evas
- * @step 3 Create new textblock object on the evas
- * @step 4 Create new cursor, associated with the object
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-   evas = evas_new();
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas object is not created..", __FILE__, __LINE__);
-     }
-   Evas_Object *obj = evas_object_textblock_add(evas);
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Textblock Evas_Object is not created..", __FILE__, __LINE__);
-     }
-   cur = evas_object_textblock_cursor_new(obj);
-
-   if (!cur)
-     {
-        ck_abort_msg("[TEST_MSG]:: %s[%d] : Evas_Textblock_Cursor is not created..", __FILE__, __LINE__);
-     }
-   inited = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_textblock_cursor_free(cur);
-   evas_free(evas);
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_textblock_cursor_pos_set
- * @{
- * @objective Positive test case checks if function sets position of given cursor properly.
- * @n Input Data:
- * @li pointer to textblock cursor;
- * @li 2 as position to be set.
- *
- * @procedure
- * @step 1 Add "test" text to the current cursor position
- * @step 2 Set position of the cursor to 2
- * @step 3 Get position of the cursor and compare with value that was set
- *
- * @passcondition Function sets cursor's position properly. Set and got values are the same.
- * @}
- */
-START_TEST(utc_evas_textblock_cursor_pos_set_p)
-{
-   if (inited == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   if (evas_textblock_cursor_text_prepend(cur, "test") != 4)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Text is not prepended to cursor..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_textblock_cursor_pos_set(cur, 2);
-        int ret = evas_textblock_cursor_pos_get(cur);
-
-        if (ret != 2)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Got position: %d", __FILE__, __LINE__, ret);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);;
-          }
-     }
-}
-END_TEST
-
-/**
- * @addtogroup evas_textblock_cursor_pos_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Textblock_Cursor.
- * @n Input Data:
- * @li NULL instead of pointer to cursor
- * @li 2 as position
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its first argument and -200 instead of its second argument
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_textblock_cursor_pos_set_n)
-{
-
-   evas_textblock_cursor_pos_set(NULL, -200);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_textblock_cursor_pos_set()
-{
-   TCase *tcase = tcase_create("utc_evas_textblock_cursor_pos_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_set_p);
-   tcase_add_test(tcase, utc_evas_textblock_cursor_pos_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get.c
deleted file mode 100644 (file)
index d867cc5..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_textblock_style_get evas_textblock_style_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_textblock_style_get
- * @{
- * @objective Positive test case checks if function returns proper string with style of given style object.
- * @n Input Data:
- * @li pointer to textblock style.
- *
- * @procedure
- * @step 1 Create new textblock style
- * @step 2 Set given string with style to the style object
- * @step 3 Get string with style and compare it with value that was set
- *
- * @passcondition Set and got values of string with style are the same.
- * @}
- */
-START_TEST(utc_evas_textblock_style_get_p)
-{
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "test";
-
-   evas_textblock_style_set(ts, str);
-   const char *ret = evas_textblock_style_get(ts);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_textblock_style_free(ts);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_textblock_style_free(ts);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_textblock_style_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to textblock style.
- * @n Input Data:
- * @li NULL as pointer to Evas_Textblock_Style.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of its argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_textblock_style_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_textblock_style_get, NULL) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_textblock_style_get()
-{
-   TCase *tcase = tcase_create("utc_evas_textblock_style_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_textblock_style_get_p);
-   tcase_add_test(tcase, utc_evas_textblock_style_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_get_set.c
new file mode 100644 (file)
index 0000000..d47f221
--- /dev/null
@@ -0,0 +1,138 @@
+#include <check.h>
+#include <Evas.h>
+#include <string.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_textblock
+ * @{
+ * @defgroup evas_textblock_style_set evas_textblock_style_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_textblock_style_set
+ * @{
+ * @objective Positive test case checks if function properly sets given string to given style object.
+ * @n Input Data:
+ * @li pointer to textblock style;
+ * @li "test" as string to be set as style.
+ *
+ * @procedure
+ * @step 1 Create new textblock style
+ * @step 2 Set given string with style to the style object
+ * @step 3 Get string with style and compare it with value that was set
+ *
+ * @passcondition Set and got values of string with style are the same.
+ * @}
+ */
+START_TEST(utc_evas_textblock_style_set_p)
+{
+   Evas_Textblock_Style *ts = evas_textblock_style_new();
+
+   if (!ts)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
+     }
+   const char *str = "test";
+
+   evas_textblock_style_set(ts, str);
+   const char *ret = evas_textblock_style_get(ts);
+
+   if (!ret || strcmp(ret, str))
+     {
+        evas_textblock_style_free(ts);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   evas_textblock_style_free(ts);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_textblock_style_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to textblock style Evas_Textblock_Style;
+ * @li "test" as string to be set as style.
+ *
+ * @procedure
+ * @step 1 Create new textblock style
+ * @step 2 Call function 2 times and pass (in turn) NULL instead of one from arguments
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_textblock_style_set_n)
+{
+   Evas_Textblock_Style *ts = evas_textblock_style_new();
+
+   if (!ts)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
+     }
+
+   UNITEST_FUNC_NEG(evas_textblock_style_set, ts, "test");
+
+   evas_textblock_style_free(ts);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_textblock_style_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to textblock style.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Textblock_Style.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of its argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_textblock_style_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_textblock_style_get, NULL) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_textblock_style_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_textblock_style_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_textblock_style_set_p);
+   tcase_add_test(tcase, utc_evas_textblock_style_set_n);
+   tcase_add_test(tcase, utc_evas_textblock_style_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_set.c b/TC/evas/canvas/evas_object_textblock/utc_evas_textblock_style_set.c
deleted file mode 100644 (file)
index dc4a8b9..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <string.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_textblock
- * @{
- * @defgroup evas_textblock_style_set evas_textblock_style_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_textblock_style_set
- * @{
- * @objective Positive test case checks if function properly sets given string to given style object.
- * @n Input Data:
- * @li pointer to textblock style;
- * @li "test" as string to be set as style.
- *
- * @procedure
- * @step 1 Create new textblock style
- * @step 2 Set given string with style to the style object
- * @step 3 Get string with style and compare it with value that was set
- *
- * @passcondition Set and got values of string with style are the same.
- * @}
- */
-START_TEST(utc_evas_textblock_style_set_p)
-{
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-   const char *str = "test";
-
-   evas_textblock_style_set(ts, str);
-   const char *ret = evas_textblock_style_get(ts);
-
-   if (!ret || strcmp(ret, str))
-     {
-        evas_textblock_style_free(ts);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   evas_textblock_style_free(ts);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_textblock_style_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to textblock style Evas_Textblock_Style;
- * @li "test" as string to be set as style.
- *
- * @procedure
- * @step 1 Create new textblock style
- * @step 2 Call function 2 times and pass (in turn) NULL instead of one from arguments
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_textblock_style_set_n)
-{
-   Evas_Textblock_Style *ts = evas_textblock_style_new();
-
-   if (!ts)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Textblock_Style is not created..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(evas_textblock_style_set, ts, "test");
-
-   evas_textblock_style_free(ts);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_textblock_style_set()
-{
-   TCase *tcase = tcase_create("utc_evas_textblock_style_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_textblock_style_set_p);
-   tcase_add_test(tcase, utc_evas_textblock_style_set_n);
-   return tcase;
-}