summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-11-26 10:52:31 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-04 16:47:43 +0100
commit8729c4b0b5f99e1ca1d4e616a06cad687a08c758 (patch)
treea5a2758ab06470e4b5bd6087eef6d0263bff2c34
parent3f7a63149a74abc26822e35530914654d7a60c4f (diff)
downloadefl-8729c4b0b5f99e1ca1d4e616a06cad687a08c758.tar.gz
tests/layout: fix theme apply test for layout object
the group previously used (efl/win/background) no longer exists, and this test never verified that the theme_set call succeeded so this has been failing silently for a long time now we check and verify that the call succeeds in addition to using a valid group Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10739
-rw-r--r--src/tests/elementary/efl_ui_test_layout.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/elementary/efl_ui_test_layout.c b/src/tests/elementary/efl_ui_test_layout.c
index 5aa64e0688..6a1763f620 100644
--- a/src/tests/elementary/efl_ui_test_layout.c
+++ b/src/tests/elementary/efl_ui_test_layout.c
@@ -153,15 +153,17 @@ EFL_START_TEST(efl_ui_layout_test_layout_theme)
{
Evas_Object *win;
const char *klass, *group, *style;
+ Eina_Error err;
win = win_add(NULL, "layout", EFL_UI_WIN_TYPE_BASIC);
Eo *layout = efl_add(EFL_UI_LAYOUT_CLASS, win,
- efl_ui_layout_theme_set(efl_added, "win", "background", NULL)
+ err = efl_ui_layout_theme_set(efl_added, "button", NULL, "anchor")
);
+ ck_assert_int_eq(err, 0);
efl_ui_layout_theme_get(layout, &klass, &group, &style);
- ck_assert_str_eq(klass, "win");
- ck_assert_str_eq(group, "background");
- ck_assert(!style);
+ ck_assert_str_eq(klass, "button");
+ ck_assert(!group);
+ ck_assert_str_eq(style, "anchor");
}
EFL_END_TEST