summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-21 10:41:57 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-08-21 10:42:04 -0400
commitbedb6df9739b5d74cbbeef652fcf2ba4ac3b7709 (patch)
tree3ead62fbe4a217c1e366a5d2f8eabe3d1e7cb0bd /src/tests
parentbb62f71fe21763a2a76e0e23f83659e1c8017571 (diff)
efl_ui/popup: remove anchor_popup class
Summary: all functionality is now merged into the base popup class. this greatly simplifies the codebase and deduplicates a lot of code ref T7902 Depends on D9651 Reviewers: cedric Reviewed By: cedric Subscribers: herb, cedric, #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T7902 Differential Revision: https://phab.enlightenment.org/D9652
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/efl_ui_test_popup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/elementary/efl_ui_test_popup.c b/src/tests/elementary/efl_ui_test_popup.c
index 7bd0ad1909..a71e04c3c5 100644
--- a/src/tests/elementary/efl_ui_test_popup.c
+++ b/src/tests/elementary/efl_ui_test_popup.c
@@ -630,7 +630,7 @@ can_move_y(Align align)
630static void 630static void
631verify_anchor(Eo *popup, Eo **align_buttons, Align align, Eina_Size2D *popup_sz) 631verify_anchor(Eo *popup, Eo **align_buttons, Align align, Eina_Size2D *popup_sz)
632{ 632{
633 Eo *anchor = efl_ui_anchor_popup_anchor_get(popup); 633 Eo *anchor = efl_ui_popup_anchor_get(popup);
634 Eo *win = efl_provider_find(popup, EFL_UI_WIN_CLASS); 634 Eo *win = efl_provider_find(popup, EFL_UI_WIN_CLASS);
635 Eina_Rect anchor_geom; 635 Eina_Rect anchor_geom;
636 Efl_Ui_Popup_Align cur_prio; 636 Efl_Ui_Popup_Align cur_prio;
@@ -766,10 +766,10 @@ EFL_START_TEST(efl_ui_test_popup_text_anchor)
766 ck_assert(efl_file_simple_load(layout, buf, "efl_ui_popup_anchor_layout")); 766 ck_assert(efl_file_simple_load(layout, buf, "efl_ui_popup_anchor_layout"));
767 efl_content_set(win, layout); 767 efl_content_set(win, layout);
768 768
769 popup = efl_add(EFL_UI_ANCHOR_POPUP_CLASS, win); 769 popup = efl_add(EFL_UI_POPUP_CLASS, win);
770 efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE); 770 efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE);
771 //Default align priority order is top, left, right, bottom, center. 771 //Default align priority order is top, left, right, bottom, center.
772 efl_ui_anchor_popup_align_priority_set(popup, EFL_UI_POPUP_ALIGN_TOP, 772 efl_ui_popup_align_priority_set(popup, EFL_UI_POPUP_ALIGN_TOP,
773 EFL_UI_POPUP_ALIGN_BOTTOM, 773 EFL_UI_POPUP_ALIGN_BOTTOM,
774 EFL_UI_POPUP_ALIGN_LEFT, 774 EFL_UI_POPUP_ALIGN_LEFT,
775 EFL_UI_POPUP_ALIGN_RIGHT, 775 EFL_UI_POPUP_ALIGN_RIGHT,
@@ -871,9 +871,9 @@ EFL_START_TEST(efl_ui_test_popup_text_anchor)
871 } 871 }
872 for (i = -1; i < num_anchors; i++) 872 for (i = -1; i < num_anchors; i++)
873 { 873 {
874 if (i >= 0) efl_ui_anchor_popup_anchor_set(popup, bganchors[i]); 874 if (i >= 0) efl_ui_popup_anchor_set(popup, bganchors[i]);
875 /* -1 is anchored to win object */ 875 /* -1 is anchored to win object */
876 else efl_ui_anchor_popup_anchor_set(popup, NULL); 876 else efl_ui_popup_anchor_set(popup, NULL);
877 for (unsigned int j = 0; j < ALIGN_RESIZE; j++) 877 for (unsigned int j = 0; j < ALIGN_RESIZE; j++)
878 { 878 {
879 verify_anchor(popup, aligns, j, &popup_sz); 879 verify_anchor(popup, aligns, j, &popup_sz);