summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShilpa Singh <shilpa.singh@samsung.com>2019-03-21 06:16:52 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-25 10:41:35 +0100
commit834219013d9e7aa403ed2d7385c427e1ae12a22c (patch)
treed1593eadee340e4e6291a5f9f851fa3199282335
parented511508539ad3cc43b3a20bd588bf9acffdc97a (diff)
efl_access: add test cases for reading_info_type_set/get API
Add test cases for efl_access_object_reading_info_type_set and efl_access_object_reading_info_type_get APIs Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8427
-rw-r--r--src/tests/elementary/efl_ui_test_atspi.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_atspi.c b/src/tests/elementary/efl_ui_test_atspi.c
index 4b9a68172f..68a88ec6c3 100644
--- a/src/tests/elementary/efl_ui_test_atspi.c
+++ b/src/tests/elementary/efl_ui_test_atspi.c
@@ -565,6 +565,27 @@ EFL_START_TEST(test_efl_access_object_attributes_clear)
565} 565}
566EFL_END_TEST 566EFL_END_TEST
567 567
568EFL_START_TEST(test_efl_access_object_reading_info_type_set)
569{
570 Efl_Access_Reading_Info_Type reading_info;
571 generate_app();
572 efl_access_object_reading_info_type_set(g_btn, EFL_ACCESS_READING_INFO_TYPE_NAME|
573 EFL_ACCESS_READING_INFO_TYPE_ROLE);
574 reading_info = efl_access_object_reading_info_type_get(g_btn);
575 ck_assert(reading_info & EFL_ACCESS_READING_INFO_TYPE_NAME);
576 ck_assert(reading_info & EFL_ACCESS_READING_INFO_TYPE_ROLE);
577}
578EFL_END_TEST
579
580EFL_START_TEST(test_efl_access_object_reading_info_type_get)
581{
582 Efl_Access_Reading_Info_Type reading_info;
583 generate_app();
584 reading_info = efl_access_object_reading_info_type_get(g_btn);
585 ck_assert(reading_info == 0);
586}
587EFL_END_TEST
588
568void efl_ui_test_atspi(TCase *tc) 589void efl_ui_test_atspi(TCase *tc)
569{ 590{
570 tcase_add_test(tc, test_efl_access_app_obj_name_get); 591 tcase_add_test(tc, test_efl_access_app_obj_name_get);
@@ -587,4 +608,6 @@ void efl_ui_test_atspi(TCase *tc)
587 tcase_add_test(tc, test_efl_access_object_attributes_get); 608 tcase_add_test(tc, test_efl_access_object_attributes_get);
588 tcase_add_test(tc, test_efl_access_object_attribute_del); 609 tcase_add_test(tc, test_efl_access_object_attribute_del);
589 tcase_add_test(tc, test_efl_access_object_attributes_clear); 610 tcase_add_test(tc, test_efl_access_object_attributes_clear);
611 tcase_add_test(tc, test_efl_access_object_reading_info_type_set);
612 tcase_add_test(tc, test_efl_access_object_reading_info_type_get);
590} 613}