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
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
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
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
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}