aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2017-09-25 17:15:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commitb3ffd78237282883c327082c841205f2f0643642 (patch)
tree6e5e776dbe7ff8990faa54c0f4bfd5ba60a6962c /src/tests
parentwidget: Fix translation of default text parts (diff)
downloadefl-b3ffd78237282883c327082c841205f2f0643642.tar.gz
elm: rename Elm.Interface.Atspi.Text => Efl.Access.Text
Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5167
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/elm_test_entry.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/tests/elementary/elm_test_entry.c b/src/tests/elementary/elm_test_entry.c
index d6bcd86110..e2a9a5d386 100644
--- a/src/tests/elementary/elm_test_entry.c
+++ b/src/tests/elementary/elm_test_entry.c
@@ -2,7 +2,7 @@
# include "elementary_config.h"
#endif
-#define ELM_INTERFACE_ATSPI_TEXT_PROTECTED
+#define EFL_ACCESS_TEXT_PROTECTED
#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
#include <Elementary.h>
#include "elm_suite.h"
@@ -85,22 +85,22 @@ START_TEST (elm_entry_atspi_text_char_get)
expected = eina_unicode_utf8_to_unicode(txt, NULL);
- val = elm_interface_atspi_text_character_get(entry, -1);
+ val = efl_access_text_character_get(entry, -1);
ck_assert(val == 0);
- val = elm_interface_atspi_text_character_get(entry, 0);
+ val = efl_access_text_character_get(entry, 0);
ck_assert(val == expected[0]);
- val = elm_interface_atspi_text_character_get(entry, 1);
+ val = efl_access_text_character_get(entry, 1);
ck_assert(val == expected[1]);
- val = elm_interface_atspi_text_character_get(entry, 2);
+ val = efl_access_text_character_get(entry, 2);
ck_assert(val == expected[2]);
- val = elm_interface_atspi_text_character_get(entry, 6);
+ val = efl_access_text_character_get(entry, 6);
ck_assert(val == expected[6]);
- val = elm_interface_atspi_text_character_get(entry, 26);
+ val = efl_access_text_character_get(entry, 26);
ck_assert(val == 0);
free(expected);
@@ -121,7 +121,7 @@ START_TEST (elm_entry_atspi_text_char_count)
entry = elm_entry_add(win);
elm_object_text_set(entry, mtxt);
- val = elm_interface_atspi_text_character_count_get(entry);
+ val = efl_access_text_character_count_get(entry);
ck_assert(val == 12);
elm_shutdown();
@@ -143,28 +143,28 @@ START_TEST (elm_entry_atspi_text_string_get_char)
elm_object_text_set(entry, txt);
start = 1;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_CHAR, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end);
ck_assert_str_eq(val, "o");
ck_assert(start == 1);
ck_assert(end == 2);
if (val) free(val);
start = 8;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_CHAR, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end);
ck_assert_str_eq(val, "ś");
ck_assert(start == 8);
ck_assert(end == 9);
if (val) free(val);
start = 11;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_CHAR, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end);
ck_assert_str_eq(val, " ");
ck_assert(start == 11);
ck_assert(end == 12);
if (val) free(val);
start = 111;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_CHAR, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end);
ck_assert(start == -1);
ck_assert(end == -1);
ck_assert(val == NULL);
@@ -188,28 +188,28 @@ START_TEST (elm_entry_atspi_text_string_get_word)
elm_object_text_set(entry, txt);
start = 1;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_WORD, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end);
ck_assert_str_eq(val, "Lorem");
ck_assert(start == 0);
ck_assert(end == 5);
if (val) free(val);
start = 6;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_WORD, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end);
ck_assert_str_eq(val, "ipśum");
ck_assert(start == 6);
ck_assert(end == 11);
if (val) free(val);
start = 19;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_WORD, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end);
ck_assert_str_eq(val, "dolor");
ck_assert(start == 14);
ck_assert(end == 19);
if (val) free(val);
start = 111;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_WORD, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end);
ck_assert(start == -1);
ck_assert(end == -1);
ck_assert(val == NULL);
@@ -234,28 +234,28 @@ START_TEST (elm_entry_atspi_text_string_get_paragraph)
elm_object_text_set(entry, txt);
start = 1;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
ck_assert_str_eq(val, "Lorem ipśum");
ck_assert(start == 0);
ck_assert(end == 11);
if (val) free(val);
start = 20;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
ck_assert_str_eq(val, " dolor sit");
ck_assert(start == 12);
ck_assert(end == 24);
if (val) free(val);
start = 25;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end);
ck_assert_str_eq(val, " amęt");
ck_assert(start == 25);
ck_assert(end == 30);
if (val) free(val);
start = 111;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_WORD, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end);
ck_assert(start == -1);
ck_assert(end == -1);
ck_assert(val == NULL);
@@ -282,7 +282,7 @@ START_TEST (elm_entry_atspi_text_string_get_line)
elm_object_text_set(entry, txt);
start = 1;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_LINE, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end);
ck_assert_str_eq(val, "Lorem ipśum");
ck_assert(start == 0);
@@ -290,7 +290,7 @@ START_TEST (elm_entry_atspi_text_string_get_line)
if (val) free(val);
start = 13;
- val = elm_interface_atspi_text_string_get(entry, ELM_ATSPI_TEXT_GRANULARITY_LINE, &start, &end);
+ val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end);
ck_assert_str_eq(val, " dolor sit amęt");
ck_assert(start == 12);
ck_assert(end == 29);
@@ -313,17 +313,17 @@ START_TEST (elm_entry_atspi_text_text_get)
elm_object_text_set(entry, txt);
// invalid ranges
- val = elm_interface_atspi_text_get(entry, 6, 100);
+ val = efl_access_text_get(entry, 6, 100);
ck_assert(val == NULL);
- val = elm_interface_atspi_text_get(entry, -6, 10);
+ val = efl_access_text_get(entry, -6, 10);
ck_assert(val == NULL);
- val = elm_interface_atspi_text_get(entry, -6, -10);
+ val = efl_access_text_get(entry, -6, -10);
ck_assert(val == NULL);
- val = elm_interface_atspi_text_get(entry, 60, 100);
+ val = efl_access_text_get(entry, 60, 100);
ck_assert(val == NULL);
// proper range
- val = elm_interface_atspi_text_get(entry, 6, 17);
+ val = efl_access_text_get(entry, 6, 17);
ck_assert_str_eq(val, "Xpśum dolor");
if (val) free(val);
@@ -345,30 +345,30 @@ START_TEST (elm_entry_atspi_text_selections)
entry = elm_entry_add(win);
elm_object_text_set(entry, txt);
- val = elm_interface_atspi_text_selections_count_get(entry);
+ val = efl_access_text_selections_count_get(entry);
ck_assert(val == 0);
elm_entry_select_region_set(entry, 2, 4);
- val = elm_interface_atspi_text_selections_count_get(entry);
+ val = efl_access_text_selections_count_get(entry);
ck_assert(val == 1);
- elm_interface_atspi_text_selection_get(entry, 0, &start, &end);
+ efl_access_text_selection_get(entry, 0, &start, &end);
ck_assert(start == 2);
ck_assert(end == 4);
elm_entry_select_region_set(entry, 6, 10);
- val = elm_interface_atspi_text_selections_count_get(entry);
+ val = efl_access_text_selections_count_get(entry);
ck_assert(val == 1);
- elm_interface_atspi_text_selection_get(entry, 0, &start, &end);
+ efl_access_text_selection_get(entry, 0, &start, &end);
ck_assert(start == 6);
ck_assert(end == 10);
elm_entry_select_none(entry);
- ret = elm_interface_atspi_text_selection_add(entry, 2, 5);
+ ret = efl_access_text_selection_add(entry, 2, 5);
ck_assert(ret == EINA_TRUE);
str = elm_entry_selection_get(entry);
ck_assert_str_eq(str, "rem");
- ret = elm_interface_atspi_text_selection_remove(entry, 0);
+ ret = efl_access_text_selection_remove(entry, 0);
ck_assert(ret == EINA_TRUE);
str = elm_entry_selection_get(entry);
ck_assert(str == NULL);