utc_elm_atspi_xxxx: Merged TCs to reduce duplicate operations 67/187367/2
authorApurv Khatri <apurv.khatri@samsung.com>
Wed, 22 Aug 2018 09:10:28 +0000 (14:40 +0530)
committerApurv Khatri <apurv.khatri@samsung.com>
Wed, 22 Aug 2018 10:03:13 +0000 (15:33 +0530)
Change-Id: Ia51f791ef86ee9d87cf1a40287262d29f5112f59

16 files changed:
TC/elementary/atspi/tslist
TC/elementary/atspi/tslist_mobile
TC/elementary/atspi/tslist_tv
TC/elementary/atspi/tslist_wear
TC/elementary/atspi/utc_elm_atspi_accessible_description_get.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_description_get_set.c [new file with mode: 0644]
TC/elementary/atspi/utc_elm_atspi_accessible_description_set.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_name_get.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_name_get_set.c [new file with mode: 0644]
TC/elementary/atspi/utc_elm_atspi_accessible_name_set.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_role_get.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_role_get_set.c [new file with mode: 0644]
TC/elementary/atspi/utc_elm_atspi_accessible_role_set.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get.c [deleted file]
TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get_set.c [new file with mode: 0644]
TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_set.c [deleted file]

index 3e28a2719b57c3b3556ffa10bfd24baca60556e0..9fe5cc9ab082b2c4cf12f49b310561294475682b 100644 (file)
@@ -1,15 +1,11 @@
 utc_elm_atspi_accessible.c
-utc_elm_atspi_accessible_description_get.c
-utc_elm_atspi_accessible_description_set.c
-utc_elm_atspi_accessible_name_set.c
-utc_elm_atspi_accessible_name_get.c
-utc_elm_atspi_accessible_role_set.c
-utc_elm_atspi_accessible_role_get.c
+utc_elm_atspi_accessible_description_get_set.c
+utc_elm_atspi_accessible_name_get_set.c
+utc_elm_atspi_accessible_role_get_set.c
 utc_elm_atspi_accessible_relationship_append.c
 utc_elm_atspi_accessible_relationship_remove.c
 utc_elm_atspi_accessible_relationships_clear.c
-utc_elm_atspi_accessible_translation_domain_get.c
-utc_elm_atspi_accessible_translation_domain_set.c
+utc_elm_atspi_accessible_translation_domain_get_set.c
 utc_elm_atspi_attributes.c
 utc_elm_atspi_bridge_connected_get.c
 utc_elm_atspi_bridge_utils_say.c
index 3e28a2719b57c3b3556ffa10bfd24baca60556e0..9fe5cc9ab082b2c4cf12f49b310561294475682b 100644 (file)
@@ -1,15 +1,11 @@
 utc_elm_atspi_accessible.c
-utc_elm_atspi_accessible_description_get.c
-utc_elm_atspi_accessible_description_set.c
-utc_elm_atspi_accessible_name_set.c
-utc_elm_atspi_accessible_name_get.c
-utc_elm_atspi_accessible_role_set.c
-utc_elm_atspi_accessible_role_get.c
+utc_elm_atspi_accessible_description_get_set.c
+utc_elm_atspi_accessible_name_get_set.c
+utc_elm_atspi_accessible_role_get_set.c
 utc_elm_atspi_accessible_relationship_append.c
 utc_elm_atspi_accessible_relationship_remove.c
 utc_elm_atspi_accessible_relationships_clear.c
-utc_elm_atspi_accessible_translation_domain_get.c
-utc_elm_atspi_accessible_translation_domain_set.c
+utc_elm_atspi_accessible_translation_domain_get_set.c
 utc_elm_atspi_attributes.c
 utc_elm_atspi_bridge_connected_get.c
 utc_elm_atspi_bridge_utils_say.c
index c7865fd3045b700fd8c68efbb75cfc0b52d588be..3e26b42d8179713c0c1b14de15543ed7a3b61dfd 100644 (file)
@@ -1,15 +1,11 @@
 utc_elm_atspi_accessible.c
-utc_elm_atspi_accessible_description_get.c
-utc_elm_atspi_accessible_description_set.c
-utc_elm_atspi_accessible_name_set.c
-utc_elm_atspi_accessible_name_get.c
-utc_elm_atspi_accessible_role_set.c
-utc_elm_atspi_accessible_role_get.c
+utc_elm_atspi_accessible_description_get_set.c
+utc_elm_atspi_accessible_name_get_set.c
+utc_elm_atspi_accessible_role_get_set.c
 utc_elm_atspi_accessible_relationship_append.c
 utc_elm_atspi_accessible_relationship_remove.c
 utc_elm_atspi_accessible_relationships_clear.c
-utc_elm_atspi_accessible_translation_domain_get.c
-utc_elm_atspi_accessible_translation_domain_set.c
+utc_elm_atspi_accessible_translation_domain_get_set.c
 #utc_elm_atspi_attributes.c
 #utc_elm_atspi_bridge_connected_get.c
 #utc_elm_atspi_bridge_utils_say.c
index 448cffb0469c667289278d2f0a8a9f089c3dc25a..46968e777f053627970b87f6126f9e014d71e04d 100644 (file)
@@ -1,15 +1,11 @@
 utc_elm_atspi_accessible.c
-utc_elm_atspi_accessible_description_get.c
-utc_elm_atspi_accessible_description_set.c
-#utc_elm_atspi_accessible_name_set.c
-utc_elm_atspi_accessible_name_get.c
-utc_elm_atspi_accessible_role_set.c
-utc_elm_atspi_accessible_role_get.c
+utc_elm_atspi_accessible_description_get_set.c
+utc_elm_atspi_accessible_name_get_set.c
+utc_elm_atspi_accessible_role_get_set.c
 utc_elm_atspi_accessible_relationship_append.c
 utc_elm_atspi_accessible_relationship_remove.c
 utc_elm_atspi_accessible_relationships_clear.c
-utc_elm_atspi_accessible_translation_domain_get.c
-utc_elm_atspi_accessible_translation_domain_set.c
+utc_elm_atspi_accessible_translation_domain_get_set.c
 #utc_elm_atspi_attributes.c
 #utc_elm_atspi_bridge_connected_get.c
 utc_elm_atspi_bridge_utils_say.c
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_description_get.c b/TC/elementary/atspi/utc_elm_atspi_accessible_description_get.c
deleted file mode 100644 (file)
index 423a546..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_description_get elm_atspi_accessible_description_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_description_get
- * @{
- * @objective Positive test case checks if initial value of atspi description property is NULL
- * on newly created elementary widgets.
- * @n Input Data:
- * @li pointer to elm_button object.
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_description_get
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_description_get)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   const char *descr;
-
-   btn = elm_button_add(main_win);
-   descr = elm_atspi_accessible_description_get(btn);
-
-   if (descr != NULL)
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_description_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_description_get);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_description_get.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_description_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_description_get_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_description_get_set.c
new file mode 100644 (file)
index 0000000..074d000
--- /dev/null
@@ -0,0 +1,116 @@
+#include <check.h>
+#define EFL_BETA_API_SUPPORT
+#include <Elementary.h>
+Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_atspi
+ * @{
+ * @defgroup elm_atspi_accessible_description_set elm_atspi_accessible_description_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_atspi_accessible_description_set
+ * @{
+ * @objective Positive test case checks if atspi description setter works properly
+ * @n Input Data:
+ * @li pointer to elm_button object.
+ * @li "Test description"
+ *
+ * @procedure
+ * @step 1 Call elm_atspi_accessible_description_set with non-null string
+ * @step 2 Call elm_atspi_accessible_description_get to get string
+ * @step 3 compare if strings from @step 1 and @step 2 are equal
+ * @step 4 Call elm_atspi_accessible_description_set with NULL
+ * @step 5 Call elm_atspi_accessible_description_get to get string
+ * @step 6 compare if strings from @step 5 is NULL
+ *
+ * @passcondition
+ * @li Test passes if all comprarisons pass and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_atspi_accessible_description_set)
+{
+   Evas_Object *btn = NULL;
+   const char *descr;
+
+   btn = elm_button_add(main_win);
+
+   elm_atspi_accessible_description_set(btn, "Test description");
+
+   descr = elm_atspi_accessible_description_get(btn);
+
+   if (!descr || strcmp(descr, "Test description"))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+     }
+
+   elm_atspi_accessible_description_set(btn, NULL);
+
+   descr = elm_atspi_accessible_description_get(btn);
+   if (descr)
+     {
+        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
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_atspi_accessible_description_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_atspi_accessible_description_set);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_atspi_accessible_description_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_atspi_accessible_description_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_description_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_description_set.c
deleted file mode 100644 (file)
index 9444d23..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_description_set elm_atspi_accessible_description_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_description_set
- * @{
- * @objective Positive test case checks if atspi description setter works properly
- * @n Input Data:
- * @li pointer to elm_button object.
- * @li "Test description"
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_description_set with non-null string
- * @step 2 Call elm_atspi_accessible_description_get to get string
- * @step 3 compare if strings from @step 1 and @step 2 are equal
- * @step 4 Call elm_atspi_accessible_description_set with NULL
- * @step 5 Call elm_atspi_accessible_description_get to get string
- * @step 6 compare if strings from @step 5 is NULL
- *
- * @passcondition
- * @li Test passes if all comprarisons pass and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_description_set)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   const char *descr;
-
-   btn = elm_button_add(main_win);
-
-   elm_atspi_accessible_description_set(btn, "Test description");
-
-   descr = elm_atspi_accessible_description_get(btn);
-
-   if (!descr || strcmp(descr, "Test description"))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   elm_atspi_accessible_description_set(btn, NULL);
-
-   descr = elm_atspi_accessible_description_get(btn);
-   if (descr)
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_description_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_description_set);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_description_set.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_description_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_name_get.c b/TC/elementary/atspi/utc_elm_atspi_accessible_name_get.c
deleted file mode 100644 (file)
index 4aff889..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_name_get elm_atspi_accessible_name_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_name_get
- * @{
- * @objective Positive test case checks if initial value of atspi name property is NULL
- * if no text was set with elm_object_text_set function.
- * Secondary objective - test if name property has properly cleaned text tags.
- * @n Input Data:
- * @li pointer to elm_button object.
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_name_get on elm_button w/o text
- * @step 2 Check if initial name value is NULL
- * @step 3 Set elm_button text with elm_object_text_set function. Text contains
- *         text markups.
- * @step 4 Call elm_atspi_accessible_name_get on elm_button
- * @step 5 Check if accessible name contains text from @step 3 but without text
- *         markups.
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_name_get)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   const char *name;
-
-   btn = elm_button_add(main_win);
-   name = elm_atspi_accessible_name_get(btn);
-
-   if (name && name[0])
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-   // Set name with additional text tags
-   elm_object_text_set(btn, "Some<br>text");
-
-   name = elm_atspi_accessible_name_get(btn);
-
-   // Accessible name should have tags filtered-out
-   if (!name || strcmp(name, "Some\ntext"))
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_name_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_name_get);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_name_get.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_name_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_name_get_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_name_get_set.c
new file mode 100644 (file)
index 0000000..e64d692
--- /dev/null
@@ -0,0 +1,120 @@
+#include <check.h>
+#define EFL_BETA_API_SUPPORT
+#include <Elementary.h>
+Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_atspi
+ * @{
+ * @defgroup elm_atspi_accessible_name_set elm_atspi_accessible_name_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_atspi_accessible_name_set
+ * @{
+ * @objective Positive test case checks if atspi name setter works properly
+ * @n Input Data:
+ * @li pointer to elm_button object.
+ * @li "Test name".
+ *
+ * @procedure
+ * @step 1 Set text on elm_button with elm_object_text_set
+ * @step 2 Set accessilbe name on elm_button (to difference value then in @step)
+ * @step 3 Call elm_atspi_accessible_name_get to get string
+ * @step 4 compare if strings from @step 3 and @step 2 are equal
+ * @step 5 Call elm_atspi_accessible_name_set with NULL
+ * @step 6 Call elm_atspi_accessible_name_get to get string
+ * @step 7 compare if strings from @step 6 and @step 1 are equal
+ *
+ *
+ * @passcondition
+ * @li Test passes if all comprarisons pass and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_atspi_accessible_name_set)
+{
+   Evas_Object *btn = NULL;
+   char *name;
+
+   btn = elm_button_add(main_win);
+
+   elm_object_text_set(btn, "Other text");
+   elm_atspi_accessible_name_set(btn, "Test name");
+
+   name = elm_atspi_accessible_name_get(btn);
+
+   if (!name || strcmp(name, "Test name"))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+     }
+
+   elm_atspi_accessible_name_set(btn, NULL);
+
+   name = elm_atspi_accessible_name_get(btn);
+
+   if (!name || strcmp(name, "Other text"))
+     {
+        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
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_atspi_accessible_name_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_atspi_accessible_name_set);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_atspi_accessible_name_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_atspi_accessible_name_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_name_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_name_set.c
deleted file mode 100644 (file)
index 7dfb391..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_name_set elm_atspi_accessible_name_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_name_set
- * @{
- * @objective Positive test case checks if atspi name setter works properly
- * @n Input Data:
- * @li pointer to elm_button object.
- * @li "Test name".
- *
- * @procedure
- * @step 1 Set text on elm_button with elm_object_text_set
- * @step 2 Set accessilbe name on elm_button (to difference value then in @step)
- * @step 3 Call elm_atspi_accessible_name_get to get string
- * @step 4 compare if strings from @step 3 and @step 2 are equal
- * @step 5 Call elm_atspi_accessible_name_set with NULL
- * @step 6 Call elm_atspi_accessible_name_get to get string
- * @step 7 compare if strings from @step 6 and @step 1 are equal
- *
- *
- * @passcondition
- * @li Test passes if all comprarisons pass and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_name_set)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   char *name;
-
-   btn = elm_button_add(main_win);
-
-   elm_object_text_set(btn, "Other text");
-   elm_atspi_accessible_name_set(btn, "Test name");
-
-   name = elm_atspi_accessible_name_get(btn);
-
-   if (!name || strcmp(name, "Test name"))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   elm_atspi_accessible_name_set(btn, NULL);
-
-   name = elm_atspi_accessible_name_get(btn);
-
-   if (!name || strcmp(name, "Other text"))
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_name_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_name_set);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_name_set.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_name_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_role_get.c b/TC/elementary/atspi/utc_elm_atspi_accessible_role_get.c
deleted file mode 100644 (file)
index b3a3423..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_role_get elm_atspi_accessible_role_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_role_get
- * @{
- * @objective Positive test case checks if getter do not SIGSEGV
- * @n Input Data:
- * @li pointer to elm_button object.
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_role_get
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_role_get)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-
-   btn = elm_button_add(main_win);
-
-   elm_atspi_accessible_role_get(btn);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_role_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_role_get);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_role_get.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_role_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_role_get_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_role_get_set.c
new file mode 100644 (file)
index 0000000..e349f72
--- /dev/null
@@ -0,0 +1,115 @@
+#include <check.h>
+#define EFL_BETA_API_SUPPORT
+#include <Elementary.h>
+Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_atspi
+ * @{
+ * @defgroup elm_atspi_accessible_role_set elm_atspi_accessible_role_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_atspi_accessible_role_set
+ * @{
+ * @objective Positive test case checks if atspi role setter works properly
+ * @n Input Data:
+ * @li pointer to elm_button object.
+ * @li Elm_Atspi_Role role
+ *
+ * @procedure
+ * @step 1 Call elm_atspi_accessible_role_set with valid role
+ * @step 2 Call elm_atspi_accessible_role_get to get role
+ * @step 3 compare if roles from @step 1 and @step 2 are equal
+ * @step 4 Call elm_atspi_accessible_role_set with other role
+ * @step 5 Call elm_atspi_accessible_role_get to get role
+ * @step 6 compare if roles from @step 5 is NULL
+ *
+ * @passcondition
+ * @li Test passes if all comprarisons pass and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_atspi_accessible_role_set)
+{
+   Evas_Object *btn = NULL;
+   Elm_Atspi_Role role;
+
+   btn = elm_button_add(main_win);
+
+   elm_atspi_accessible_role_set(btn, ELM_ATSPI_ROLE_ACCELERATOR_LABEL);
+
+   role = elm_atspi_accessible_role_get(btn);
+   if (role != ELM_ATSPI_ROLE_ACCELERATOR_LABEL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+     }
+
+   elm_atspi_accessible_role_set(btn, ELM_ATSPI_ROLE_ENTRY);
+
+   role = elm_atspi_accessible_role_get(btn);
+   if (role != ELM_ATSPI_ROLE_ENTRY)
+     {
+        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
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_atspi_accessible_role_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_atspi_accessible_role_set);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_atspi_accessible_role_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_atspi_accessible_role_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_role_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_role_set.c
deleted file mode 100644 (file)
index d5b1e9d..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_role_set elm_atspi_accessible_role_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_role_set
- * @{
- * @objective Positive test case checks if atspi role setter works properly
- * @n Input Data:
- * @li pointer to elm_button object.
- * @li Elm_Atspi_Role role
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_role_set with valid role
- * @step 2 Call elm_atspi_accessible_role_get to get role
- * @step 3 compare if roles from @step 1 and @step 2 are equal
- * @step 4 Call elm_atspi_accessible_role_set with other role
- * @step 5 Call elm_atspi_accessible_role_get to get role
- * @step 6 compare if roles from @step 5 is NULL
- *
- * @passcondition
- * @li Test passes if all comprarisons pass and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_role_set)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   Elm_Atspi_Role role;
-
-   btn = elm_button_add(main_win);
-
-   elm_atspi_accessible_role_set(btn, ELM_ATSPI_ROLE_ACCELERATOR_LABEL);
-
-   role = elm_atspi_accessible_role_get(btn);
-   if (role != ELM_ATSPI_ROLE_ACCELERATOR_LABEL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   elm_atspi_accessible_role_set(btn, ELM_ATSPI_ROLE_ENTRY);
-
-   role = elm_atspi_accessible_role_get(btn);
-   if (role != ELM_ATSPI_ROLE_ENTRY)
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_role_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_role_set);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_role_set.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_role_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get.c b/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get.c
deleted file mode 100644 (file)
index b98c5b7..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_translation_domain_get elm_atspi_accessible_translation_domain_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_translation_domain_get
- * @{
- * @objective Positive test case checks if initial value of atspi translation_domain property is NULL
- * on newly created elementary widgets.
- * @n Input Data:
- * @li pointer to elm_button object.
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_translation_domain_get
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_translation_domain_get)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   const char *domain;
-
-   btn = elm_button_add(main_win);
-   domain = elm_atspi_accessible_translation_domain_get(btn);
-
-   if (domain != NULL)
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_translation_domain_get");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_translation_domain_get);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_translation_domain_get.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_translation_domain_get.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_get_set.c
new file mode 100644 (file)
index 0000000..d5c4a74
--- /dev/null
@@ -0,0 +1,116 @@
+#include <check.h>
+#define EFL_BETA_API_SUPPORT
+#include <Elementary.h>
+Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_atspi
+ * @{
+ * @defgroup elm_atspi_accessible_translation_domain_set elm_atspi_accessible_translation_domain_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   elm_init(0, NULL);
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_atspi_accessible_translation_domain_set
+ * @{
+ * @objective Positive test case checks if atspi translation_domain setter works properly
+ * @n Input Data:
+ * @li pointer to elm_button object.
+ * @li "Test translation_domain"
+ *
+ * @procedure
+ * @step 1 Call elm_atspi_accessible_translation_domain_set with non-null string
+ * @step 2 Call elm_atspi_accessible_translation_domain_get to get string
+ * @step 3 compare if strings from @step 1 and @step 2 are equal
+ * @step 4 Call elm_atspi_accessible_translation_domain_set with NULL
+ * @step 5 Call elm_atspi_accessible_translation_domain_get to get string
+ * @step 6 compare if strings from @step 5 is NULL
+ *
+ * @passcondition
+ * @li Test passes if all comprarisons pass and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_atspi_accessible_translation_domain_set)
+{
+   Evas_Object *btn = NULL;
+   const char *domain;
+
+   btn = elm_button_add(main_win);
+
+   elm_atspi_accessible_translation_domain_set(btn, "Test translation_domain");
+
+   domain = elm_atspi_accessible_translation_domain_get(btn);
+
+   if (!domain || strcmp(domain, "Test translation_domain"))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
+     }
+
+   elm_atspi_accessible_translation_domain_set(btn, NULL);
+
+   domain = elm_atspi_accessible_translation_domain_get(btn);
+   if (domain)
+     {
+        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
+Suite *
+test_suite(void)
+{
+   Suite *suite = suite_create("utc_elm_atspi_accessible_translation_domain_get_set");
+
+   TCase *tcase = tcase_create("TCase");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_atspi_accessible_translation_domain_set);
+   suite_add_tcase(suite, tcase);
+
+   return suite;
+}
+
+int
+main()
+{
+   int number_failed;
+
+   Suite *suite = test_suite();
+   SRunner *srunner = srunner_create(suite);
+   srunner_set_log(srunner, "utc_elm_atspi_accessible_translation_domain_get_set.log");
+   srunner_set_xml(srunner, "utc_elm_atspi_accessible_translation_domain_get_set.xml");
+   srunner_run_all(srunner, CK_NORMAL);
+   number_failed = srunner_ntests_failed(srunner);
+   srunner_free(srunner);
+
+   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
+}
diff --git a/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_set.c b/TC/elementary/atspi/utc_elm_atspi_accessible_translation_domain_set.c
deleted file mode 100644 (file)
index c5b68d5..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-#include <check.h>
-#define EFL_BETA_API_SUPPORT
-#include <Elementary.h>
-Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_atspi
- * @{
- * @defgroup elm_atspi_accessible_translation_domain_set elm_atspi_accessible_translation_domain_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   elm_init(0, NULL);
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_atspi_accessible_translation_domain_set
- * @{
- * @objective Positive test case checks if atspi translation_domain setter works properly
- * @n Input Data:
- * @li pointer to elm_button object.
- * @li "Test translation_domain"
- *
- * @procedure
- * @step 1 Call elm_atspi_accessible_translation_domain_set with non-null string
- * @step 2 Call elm_atspi_accessible_translation_domain_get to get string
- * @step 3 compare if strings from @step 1 and @step 2 are equal
- * @step 4 Call elm_atspi_accessible_translation_domain_set with NULL
- * @step 5 Call elm_atspi_accessible_translation_domain_get to get string
- * @step 6 compare if strings from @step 5 is NULL
- *
- * @passcondition
- * @li Test passes if all comprarisons pass and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_atspi_accessible_translation_domain_set)
-{
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   Evas_Object *btn = NULL;
-   const char *domain;
-
-   btn = elm_button_add(main_win);
-
-   elm_atspi_accessible_translation_domain_set(btn, "Test translation_domain");
-
-   domain = elm_atspi_accessible_translation_domain_get(btn);
-
-   if (!domain || strcmp(domain, "Test translation_domain"))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-     }
-
-   elm_atspi_accessible_translation_domain_set(btn, NULL);
-
-   domain = elm_atspi_accessible_translation_domain_get(btn);
-   if (domain)
-     {
-        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
-Suite *
-test_suite(void)
-{
-   Suite *suite = suite_create("utc_elm_atspi_accessible_translation_domain_set");
-
-   TCase *tcase = tcase_create("TCase");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_atspi_accessible_translation_domain_set);
-   suite_add_tcase(suite, tcase);
-
-   return suite;
-}
-
-int
-main()
-{
-   int number_failed;
-
-   Suite *suite = test_suite();
-   SRunner *srunner = srunner_create(suite);
-   srunner_set_log(srunner, "utc_elm_atspi_accessible_translation_domain_set.log");
-   srunner_set_xml(srunner, "utc_elm_atspi_accessible_translation_domain_set.xml");
-   srunner_run_all(srunner, CK_NORMAL);
-   number_failed = srunner_ntests_failed(srunner);
-   srunner_free(srunner);
-
-   return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}