summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_atspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elementary/elm_test_atspi.c')
-rw-r--r--src/tests/elementary/elm_test_atspi.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/tests/elementary/elm_test_atspi.c b/src/tests/elementary/elm_test_atspi.c
index 649af0b..ebd121b 100644
--- a/src/tests/elementary/elm_test_atspi.c
+++ b/src/tests/elementary/elm_test_atspi.c
@@ -285,8 +285,8 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
285 Eina_Iterator *it; 285 Eina_Iterator *it;
286 unsigned int i = 0; 286 unsigned int i = 0;
287 287
288 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 288 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
289 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 289 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
290 it = efl_access_object_relations_get(g_btn); 290 it = efl_access_object_relations_get(g_btn);
291 291
292 ck_assert(it != NULL); 292 ck_assert(it != NULL);
@@ -296,9 +296,9 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
296 { 296 {
297 i++; 297 i++;
298 298
299 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 299 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
300 rel_to = rel; 300 rel_to = rel;
301 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 301 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
302 rel_from = rel; 302 rel_from = rel;
303 } 303 }
304 304
@@ -312,8 +312,8 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
312 eina_iterator_free(it); 312 eina_iterator_free(it);
313 313
314 /* Check if append do not procude duplicated relations */ 314 /* Check if append do not procude duplicated relations */
315 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 315 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
316 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 316 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
317 it = efl_access_object_relations_get(g_btn); i = 0; 317 it = efl_access_object_relations_get(g_btn); i = 0;
318 318
319 rel_to = rel_from = NULL; 319 rel_to = rel_from = NULL;
@@ -321,9 +321,9 @@ EFL_START_TEST(test_efl_access_object_relationship_append)
321 { 321 {
322 i++; 322 i++;
323 323
324 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 324 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
325 rel_to = rel; 325 rel_to = rel;
326 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 326 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
327 rel_from = rel; 327 rel_from = rel;
328 } 328 }
329 329
@@ -350,9 +350,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
350 unsigned int i = 0; 350 unsigned int i = 0;
351 351
352 /* Test if removal of single relationship works */ 352 /* Test if removal of single relationship works */
353 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 353 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
354 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 354 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
355 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 355 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
356 it = efl_access_object_relations_get(g_btn); 356 it = efl_access_object_relations_get(g_btn);
357 357
358 ck_assert(it != NULL); 358 ck_assert(it != NULL);
@@ -362,9 +362,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
362 { 362 {
363 i++; 363 i++;
364 364
365 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 365 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
366 rel_to = rel; 366 rel_to = rel;
367 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 367 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
368 rel_from = rel; 368 rel_from = rel;
369 } 369 }
370 370
@@ -377,9 +377,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
377 eina_iterator_free(it); 377 eina_iterator_free(it);
378 378
379 /* Test if removal of type relationship works */ 379 /* Test if removal of type relationship works */
380 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 380 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
381 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_win); 381 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_win);
382 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, NULL); 382 efl_access_object_relationship_remove(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, NULL);
383 it = efl_access_object_relations_get(g_btn); i = 0; 383 it = efl_access_object_relations_get(g_btn); i = 0;
384 384
385 rel_to = rel_from = NULL; 385 rel_to = rel_from = NULL;
@@ -387,9 +387,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
387 { 387 {
388 i++; 388 i++;
389 389
390 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 390 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
391 rel_to = rel; 391 rel_to = rel;
392 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 392 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
393 rel_from = rel; 393 rel_from = rel;
394 } 394 }
395 395
@@ -400,8 +400,8 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
400 eina_iterator_free(it); 400 eina_iterator_free(it);
401 401
402 /* Test if relationship is implicity removed when object is deleted */ 402 /* Test if relationship is implicity removed when object is deleted */
403 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 403 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
404 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_bg); 404 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_bg);
405 efl_del(g_bg); 405 efl_del(g_bg);
406 it = efl_access_object_relations_get(g_btn); i = 0; 406 it = efl_access_object_relations_get(g_btn); i = 0;
407 407
@@ -410,9 +410,9 @@ EFL_START_TEST(test_efl_access_object_relationship_remove)
410 { 410 {
411 i++; 411 i++;
412 412
413 if (rel->type == EFL_ACCESS_RELATION_FLOWS_TO) 413 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO)
414 rel_to = rel; 414 rel_to = rel;
415 if (rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) 415 if (rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM)
416 rel_from = rel; 416 rel_from = rel;
417 } 417 }
418 418
@@ -430,20 +430,20 @@ EFL_START_TEST(test_efl_access_object_relationships_clear)
430 430
431 generate_app(); 431 generate_app();
432 432
433 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_bg); 433 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_bg);
434 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_bg); 434 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_bg);
435 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_TO, g_win); 435 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_TO, g_win);
436 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_FLOWS_FROM, g_win); 436 efl_access_object_relationship_append(g_btn, EFL_ACCESS_RELATION_TYPE_FLOWS_FROM, g_win);
437 437
438 efl_access_object_relationships_clear(g_btn); 438 efl_access_object_relationships_clear(g_btn);
439 439
440 it = efl_access_object_relations_get(g_btn); 440 it = efl_access_object_relations_get(g_btn);
441 EINA_ITERATOR_FOREACH(it, rel) 441 EINA_ITERATOR_FOREACH(it, rel)
442 { 442 {
443 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_TO) && eina_list_data_find(rel->objects, g_bg))); 443 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO) && eina_list_data_find(rel->objects, g_bg)));
444 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) && eina_list_data_find(rel->objects, g_bg))); 444 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM) && eina_list_data_find(rel->objects, g_bg)));
445 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_TO) && eina_list_data_find(rel->objects, g_win))); 445 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_TO) && eina_list_data_find(rel->objects, g_win)));
446 ck_assert(!((rel->type == EFL_ACCESS_RELATION_FLOWS_FROM) && eina_list_data_find(rel->objects, g_win))); 446 ck_assert(!((rel->type == EFL_ACCESS_RELATION_TYPE_FLOWS_FROM) && eina_list_data_find(rel->objects, g_win)));
447 } 447 }
448 eina_iterator_free(it); 448 eina_iterator_free(it);
449} 449}