summaryrefslogtreecommitdiff
path: root/src/tests/elementary/efl_ui_test_atspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elementary/efl_ui_test_atspi.c')
-rw-r--r--src/tests/elementary/efl_ui_test_atspi.c61
1 files changed, 31 insertions, 30 deletions
diff --git a/src/tests/elementary/efl_ui_test_atspi.c b/src/tests/elementary/efl_ui_test_atspi.c
index ecb0f96..9aa0463 100644
--- a/src/tests/elementary/efl_ui_test_atspi.c
+++ b/src/tests/elementary/efl_ui_test_atspi.c
@@ -6,6 +6,7 @@
6#define EFL_ACCESS_OBJECT_BETA 6#define EFL_ACCESS_OBJECT_BETA
7#define EFL_ACCESS_OBJECT_PROTECTED 7#define EFL_ACCESS_OBJECT_PROTECTED
8 8
9#include <Efl_Ui.h>
9#include <Elementary.h> 10#include <Elementary.h>
10#include "elm_priv.h" 11#include "elm_priv.h"
11#include "efl_ui_suite.h" 12#include "efl_ui_suite.h"
@@ -286,8 +287,8 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
286 Eina_Iterator *it; 287 Eina_Iterator *it;
287 unsigned int i = 0; 288 unsigned int i = 0;
288 289
289 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 290 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
290 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 291 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
291 it = efl_access_object_relations_get(g_btn); 292 it = efl_access_object_relations_get(g_btn);
292 293
293 ck_assert(it != NULL); 294 ck_assert(it != NULL);
@@ -297,9 +298,9 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
297 { 298 {
298 i++; 299 i++;
299 300
300 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 301 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
301 rel_to = rel; 302 rel_to = rel;
302 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 303 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
303 rel_from = rel; 304 rel_from = rel;
304 } 305 }
305 306
@@ -313,8 +314,8 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
313 eina_iterator_free(it); 314 eina_iterator_free(it);
314 315
315 /* Check if append do not procude duplicated relations */ 316 /* Check if append do not procude duplicated relations */
316 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 317 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
317 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 318 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
318 it = efl_access_object_relations_get(g_btn); i = 0; 319 it = efl_access_object_relations_get(g_btn); i = 0;
319 320
320 rel_to = rel_from = NULL; 321 rel_to = rel_from = NULL;
@@ -322,9 +323,9 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
322 { 323 {
323 i++; 324 i++;
324 325
325 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 326 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
326 rel_to = rel; 327 rel_to = rel;
327 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 328 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
328 rel_from = rel; 329 rel_from = rel;
329 } 330 }
330 331
@@ -351,9 +352,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
351 unsigned int i = 0; 352 unsigned int i = 0;
352 353
353 /* Test if removal of single relationship works */ 354 /* Test if removal of single relationship works */
354 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 355 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
355 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 356 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
356 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 357 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
357 it = efl_access_object_relations_get(g_btn); 358 it = efl_access_object_relations_get(g_btn);
358 359
359 ck_assert(it != NULL); 360 ck_assert(it != NULL);
@@ -363,9 +364,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
363 { 364 {
364 i++; 365 i++;
365 366
366 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 367 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
367 rel_to = rel; 368 rel_to = rel;
368 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 369 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
369 rel_from = rel; 370 rel_from = rel;
370 } 371 }
371 372
@@ -378,9 +379,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
378 eina_iterator_free(it); 379 eina_iterator_free(it);
379 380
380 /* Test if removal of type relationship works */ 381 /* Test if removal of type relationship works */
381 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 382 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
382 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_win); 383 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_win);
383 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, NULL); 384 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, NULL);
384 it = efl_access_object_relations_get(g_btn); i = 0; 385 it = efl_access_object_relations_get(g_btn); i = 0;
385 386
386 rel_to = rel_from = NULL; 387 rel_to = rel_from = NULL;
@@ -388,9 +389,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
388 { 389 {
389 i++; 390 i++;
390 391
391 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 392 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
392 rel_to = rel; 393 rel_to = rel;
393 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 394 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
394 rel_from = rel; 395 rel_from = rel;
395 } 396 }
396 397
@@ -401,8 +402,8 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
401 eina_iterator_free(it); 402 eina_iterator_free(it);
402 403
403 /* Test if relationship is implicity removed when object is deleted */ 404 /* Test if relationship is implicity removed when object is deleted */
404 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 405 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
405 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_bg); 406 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_bg);
406 efl_del(g_bg); 407 efl_del(g_bg);
407 it = efl_access_object_relations_get(g_btn); i = 0; 408 it = efl_access_object_relations_get(g_btn); i = 0;
408 409
@@ -411,9 +412,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
411 { 412 {
412 i++; 413 i++;
413 414
414 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 415 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
415 rel_to = rel; 416 rel_to = rel;
416 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 417 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
417 rel_from = rel; 418 rel_from = rel;
418 } 419 }
419 420
@@ -431,20 +432,20 @@ EFL_START_TEST(test_efl_access_object_relationships_clear)
431 432
432 generate_app(); 433 generate_app();
433 434
434 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 435 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
435 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_bg); 436 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_bg);
436 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_win); 437 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_win);
437 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 438 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
438 439
439 efl_access_object_relationships_clear(g_btn); 440 efl_access_object_relationships_clear(g_btn);
440 441
441 it = efl_access_object_relations_get(g_btn); 442 it = efl_access_object_relations_get(g_btn);
442 EINA_ITERATOR_FOREACH(it, rel) 443 EINA_ITERATOR_FOREACH(it, rel)
443 { 444 {
444 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_TO) && eina_list_data_find(rel->objects, g_bg))); 445 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO) && eina_list_data_find(rel->objects, g_bg)));
445 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) && eina_list_data_find(rel->objects, g_bg))); 446 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM) && eina_list_data_find(rel->objects, g_bg)));
446 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_TO) && eina_list_data_find(rel->objects, g_win))); 447 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO) && eina_list_data_find(rel->objects, g_win)));
447 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) && eina_list_data_find(rel->objects, g_win))); 448 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM) && eina_list_data_find(rel->objects, g_win)));
448 } 449 }
449 eina_iterator_free(it); 450 eina_iterator_free(it);
450} 451}