elm_atspi: add bridge_highlighted_object_read 10/234710/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 28 May 2020 02:07:16 +0000 (11:07 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 28 May 2020 06:31:29 +0000 (15:31 +0900)
The elm_atspi_bridge_highlighted_object_read is newly added.
So its relevant test case should be added accordingly.

Change-Id: I46888effda83280e1f190244387b209fd1c6e923

TC/elementary/atspi/tslist
TC/elementary/atspi/tslist_fhub
TC/elementary/atspi/tslist_mobile
TC/elementary/atspi/tslist_tv
TC/elementary/atspi/tslist_wear
TC/elementary/atspi/utc_elm_atspi_bridge_highlighted_object_read.c [new file with mode: 0644]
TC/tet_scen

index 9fe5cc9ab082b2c4cf12f49b310561294475682b..b28d30281e32c3b7ff9841085df9937498f178a2 100644 (file)
@@ -9,5 +9,6 @@ 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_bridge_highlighted_object_read.c
 utc_elm_atspi_relation.c
 utc_elm_atspi_component_highlight.c
index 9fe5cc9ab082b2c4cf12f49b310561294475682b..1a458d556b21c206e19a9a043a075bc52c8796c9 100644 (file)
@@ -9,5 +9,6 @@ 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_bridge_highlighted_object_read.c
 utc_elm_atspi_relation.c
 utc_elm_atspi_component_highlight.c
index 9fe5cc9ab082b2c4cf12f49b310561294475682b..b28d30281e32c3b7ff9841085df9937498f178a2 100644 (file)
@@ -9,5 +9,6 @@ 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_bridge_highlighted_object_read.c
 utc_elm_atspi_relation.c
 utc_elm_atspi_component_highlight.c
index 3e26b42d8179713c0c1b14de15543ed7a3b61dfd..2fc905a9d3869d58b59b209a215ea199163c407d 100644 (file)
@@ -9,5 +9,6 @@ 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_bridge_highlighted_object_read.c
 #utc_elm_atspi_relation.c
 utc_elm_atspi_component_highlight.c
index 46968e777f053627970b87f6126f9e014d71e04d..c227544a1ab517f0efc279af07fee644ff45c9c9 100644 (file)
@@ -9,5 +9,6 @@ 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_bridge_highlighted_object_read.c
 #utc_elm_atspi_relation.c
 utc_elm_atspi_component_highlight.c
diff --git a/TC/elementary/atspi/utc_elm_atspi_bridge_highlighted_object_read.c b/TC/elementary/atspi/utc_elm_atspi_bridge_highlighted_object_read.c
new file mode 100644 (file)
index 0000000..5ea61b0
--- /dev/null
@@ -0,0 +1,75 @@
+#include <check.h>
+#define EFL_BETA_API_SUPPORT
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_atspi
+ * @{
+ * @defgroup elm_atspi_bridge_highlighted_object_read elm_atspi_highlighted_object_read()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+
+   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_bridge_highlighted_object_read_add
+ * @{
+ * @objective Positive test case check work of functions without errors
+ * @n Input Data:
+ *
+ * @procedure
+ * @step 1 Call elm_atspi_bridge_highlighted_object_read()
+ *
+ * @passcondition : Function worked and no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_atspi_bridge_highlighted_object_read_p)
+{
+   elm_atspi_bridge_highlighted_object_read();
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_atspi_bridge_highlighted_object_read()
+{
+   TCase *tcase = tcase_create("utc_elm_atspi_bridge_highlighted_object_read");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_atspi_bridge_highlighted_object_read_p);
+   return tcase;
+}
index e0d6fd28ce2dd93e4ec4ee0e084a0d8f1e89a677..a897452dd94492d1bcfadbbca9c9d75c5ff10546 100644 (file)
@@ -774,7 +774,7 @@ ELDBUS-wear
 ELEMENTARY-wear
 #/elementary/actionslider/tslist_wear
 /elementary/animation_view/tslist_wear
-#/elementary/atspi/tslist_wear
+/elementary/atspi/tslist_wear
 /elementary/bg/tslist_wear
 /elementary/box/tslist_wear
 #/elementary/bubble/tslist_wear