summaryrefslogtreecommitdiff
path: root/src/tests/elementary
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-16 13:03:33 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-20 13:24:16 +0200
commit41866a885577a189c3056850e7aeef3e72b4c50f (patch)
treeab4b2e8e0239c7cd95c1ae9e2c9ced3ab2450185 /src/tests/elementary
parent1692ff3890875be579dbf953bd0ec2146497eba9 (diff)
Efl.Pack_Table: remove table_direction
Summary: The only implementation of this interface, `Efl.Ui.Table`, only supports two fill directions (horizontal or vertical), therefore the table_direction property which supports primary and secondary directions is unnecessarily complicated. Remove it and use only `Efl.Ui.Direction.direction` to select the fill direction. Also, expanded the documentation. Fixes T7962 Test Plan: Everything builds and tests pass. Efl.Ui.Table elementary_test still work. Examples need to be adjusted to stop using table_direction. Reviewers: zmike, YOhoho, bu5hm4n, SanghyeonLee, Jaehyun_Cho Reviewed By: YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7962 Differential Revision: https://phab.enlightenment.org/D8902
Diffstat (limited to 'src/tests/elementary')
-rw-r--r--src/tests/elementary/efl_ui_test_table.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/tests/elementary/efl_ui_test_table.c b/src/tests/elementary/efl_ui_test_table.c
index 476be61159..a1761f1613 100644
--- a/src/tests/elementary/efl_ui_test_table.c
+++ b/src/tests/elementary/efl_ui_test_table.c
@@ -488,7 +488,6 @@ EFL_START_TEST (efl_ui_table_properties)
488 double h, v; 488 double h, v;
489 Eina_Bool b; 489 Eina_Bool b;
490 Eina_Bool homogeneoush, homogeneousv; 490 Eina_Bool homogeneoush, homogeneousv;
491 Efl_Ui_Dir dirh, dirv;
492 491
493 //align test 492 //align test
494 efl_gfx_arrangement_content_align_get(layout, &h, &v); 493 efl_gfx_arrangement_content_align_get(layout, &h, &v);
@@ -524,20 +523,12 @@ EFL_START_TEST (efl_ui_table_properties)
524 ck_assert_int_eq(b, 1); 523 ck_assert_int_eq(b, 1);
525 524
526 //direction test 525 //direction test
527 efl_pack_table_direction_get(layout, &dirh, &dirv); 526 ck_assert_int_eq(efl_ui_direction_get(layout), EFL_UI_DIR_RIGHT);
528 ck_assert_int_eq(dirh, EFL_UI_DIR_RIGHT);
529 ck_assert_int_eq(dirv, EFL_UI_DIR_DOWN);
530
531 efl_pack_table_direction_set(layout, EFL_UI_DIR_VERTICAL, EFL_UI_DIR_HORIZONTAL);
532 efl_pack_table_direction_get(layout, &dirh, &dirv);
533 ck_assert_int_eq(dirh, EFL_UI_DIR_VERTICAL);
534 ck_assert_int_eq(dirv, EFL_UI_DIR_HORIZONTAL);
535 527
536 efl_pack_table_direction_set(layout, EFL_UI_DIR_RIGHT, EFL_UI_DIR_RIGHT); 528 efl_ui_direction_set(layout, EFL_UI_DIR_VERTICAL);
537 efl_pack_table_direction_get(layout, &dirh, &dirv); 529 ck_assert_int_eq(efl_ui_direction_get(layout), EFL_UI_DIR_VERTICAL);
538 ck_assert_int_eq(dirh, EFL_UI_DIR_RIGHT);
539 ck_assert_int_eq(dirv, EFL_UI_DIR_DOWN);
540 530
531 efl_ui_direction_set(layout, EFL_UI_DIR_RIGHT);
541 ck_assert_int_eq(efl_ui_direction_get(layout), EFL_UI_DIR_RIGHT); 532 ck_assert_int_eq(efl_ui_direction_get(layout), EFL_UI_DIR_RIGHT);
542 533
543 efl_ui_direction_set(layout, EFL_UI_DIR_DEFAULT); 534 efl_ui_direction_set(layout, EFL_UI_DIR_DEFAULT);