summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-05-31 06:16:46 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-06-02 08:07:48 +0200
commitff3d3b19447c2eaa5378ea2e303f7a696d5370ef (patch)
tree13f35a9b11ce9e4d7f3642c4d84995d8fc2511db /src/tests
parent5ca1a8c8a7fed96260b7d3faa5a12f55ac790855 (diff)
efl_access_text: remove ptr usage in eo files
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11907
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/elm_test_entry.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tests/elementary/elm_test_entry.c b/src/tests/elementary/elm_test_entry.c
index cc68aed0dd..200ff1e744 100644
--- a/src/tests/elementary/elm_test_entry.c
+++ b/src/tests/elementary/elm_test_entry.c
@@ -155,28 +155,28 @@ EFL_START_TEST(elm_entry_atspi_text_string_get_char)
155 elm_object_text_set(entry, txt); 155 elm_object_text_set(entry, txt);
156 156
157 start = 1; 157 start = 1;
158 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end); 158 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end, &val);
159 ck_assert_str_eq(val, "o"); 159 ck_assert_str_eq(val, "o");
160 ck_assert(start == 1); 160 ck_assert(start == 1);
161 ck_assert(end == 2); 161 ck_assert(end == 2);
162 if (val) free(val); 162 if (val) free(val);
163 163
164 start = 8; 164 start = 8;
165 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end); 165 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end, &val);
166 ck_assert_str_eq(val, "ś"); 166 ck_assert_str_eq(val, "ś");
167 ck_assert(start == 8); 167 ck_assert(start == 8);
168 ck_assert(end == 9); 168 ck_assert(end == 9);
169 if (val) free(val); 169 if (val) free(val);
170 170
171 start = 11; 171 start = 11;
172 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end); 172 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end, &val);
173 ck_assert_str_eq(val, " "); 173 ck_assert_str_eq(val, " ");
174 ck_assert(start == 11); 174 ck_assert(start == 11);
175 ck_assert(end == 12); 175 ck_assert(end == 12);
176 if (val) free(val); 176 if (val) free(val);
177 177
178 start = 111; 178 start = 111;
179 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end); 179 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_CHAR, &start, &end, &val);
180 ck_assert(start == -1); 180 ck_assert(start == -1);
181 ck_assert(end == -1); 181 ck_assert(end == -1);
182 ck_assert(val == NULL); 182 ck_assert(val == NULL);
@@ -198,28 +198,28 @@ EFL_START_TEST(elm_entry_atspi_text_string_get_word)
198 elm_object_text_set(entry, txt); 198 elm_object_text_set(entry, txt);
199 199
200 start = 1; 200 start = 1;
201 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end); 201 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end, &val);
202 ck_assert_str_eq(val, "Lorem"); 202 ck_assert_str_eq(val, "Lorem");
203 ck_assert(start == 0); 203 ck_assert(start == 0);
204 ck_assert(end == 5); 204 ck_assert(end == 5);
205 if (val) free(val); 205 if (val) free(val);
206 206
207 start = 6; 207 start = 6;
208 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end); 208 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end, &val);
209 ck_assert_str_eq(val, "ipśum"); 209 ck_assert_str_eq(val, "ipśum");
210 ck_assert(start == 6); 210 ck_assert(start == 6);
211 ck_assert(end == 11); 211 ck_assert(end == 11);
212 if (val) free(val); 212 if (val) free(val);
213 213
214 start = 19; 214 start = 19;
215 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end); 215 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end, &val);
216 ck_assert_str_eq(val, "dolor"); 216 ck_assert_str_eq(val, "dolor");
217 ck_assert(start == 14); 217 ck_assert(start == 14);
218 ck_assert(end == 19); 218 ck_assert(end == 19);
219 if (val) free(val); 219 if (val) free(val);
220 220
221 start = 111; 221 start = 111;
222 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end); 222 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end, &val);
223 ck_assert(start == -1); 223 ck_assert(start == -1);
224 ck_assert(end == -1); 224 ck_assert(end == -1);
225 ck_assert(val == NULL); 225 ck_assert(val == NULL);
@@ -242,28 +242,28 @@ EFL_START_TEST(elm_entry_atspi_text_string_get_paragraph)
242 elm_object_text_set(entry, txt); 242 elm_object_text_set(entry, txt);
243 243
244 start = 1; 244 start = 1;
245 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end); 245 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end, &val);
246 ck_assert_str_eq(val, "Lorem ipśum"); 246 ck_assert_str_eq(val, "Lorem ipśum");
247 ck_assert(start == 0); 247 ck_assert(start == 0);
248 ck_assert(end == 11); 248 ck_assert(end == 11);
249 if (val) free(val); 249 if (val) free(val);
250 250
251 start = 20; 251 start = 20;
252 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end); 252 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end, &val);
253 ck_assert_str_eq(val, " dolor sit"); 253 ck_assert_str_eq(val, " dolor sit");
254 ck_assert(start == 12); 254 ck_assert(start == 12);
255 ck_assert(end == 24); 255 ck_assert(end == 24);
256 if (val) free(val); 256 if (val) free(val);
257 257
258 start = 25; 258 start = 25;
259 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end); 259 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_PARAGRAPH, &start, &end, &val);
260 ck_assert_str_eq(val, " amęt"); 260 ck_assert_str_eq(val, " amęt");
261 ck_assert(start == 25); 261 ck_assert(start == 25);
262 ck_assert(end == 30); 262 ck_assert(end == 30);
263 if (val) free(val); 263 if (val) free(val);
264 264
265 start = 111; 265 start = 111;
266 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end); 266 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_WORD, &start, &end, &val);
267 ck_assert(start == -1); 267 ck_assert(start == -1);
268 ck_assert(end == -1); 268 ck_assert(end == -1);
269 ck_assert(val == NULL); 269 ck_assert(val == NULL);
@@ -288,7 +288,7 @@ EFL_START_TEST(elm_entry_atspi_text_string_get_line)
288 elm_object_text_set(entry, txt); 288 elm_object_text_set(entry, txt);
289 289
290 start = 1; 290 start = 1;
291 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end); 291 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end, &val);
292 292
293 ck_assert_str_eq(val, "Lorem ipśum"); 293 ck_assert_str_eq(val, "Lorem ipśum");
294 ck_assert(start == 0); 294 ck_assert(start == 0);
@@ -296,7 +296,7 @@ EFL_START_TEST(elm_entry_atspi_text_string_get_line)
296 if (val) free(val); 296 if (val) free(val);
297 297
298 start = 13; 298 start = 13;
299 val = efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end); 299 efl_access_text_string_get(entry, EFL_ACCESS_TEXT_GRANULARITY_LINE, &start, &end, &val);
300 ck_assert_str_eq(val, " dolor sit amęt"); 300 ck_assert_str_eq(val, " dolor sit amęt");
301 ck_assert(start == 12); 301 ck_assert(start == 12);
302 ck_assert(end == 29); 302 ck_assert(end == 29);