summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_box.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elementary/elm_test_box.c')
-rw-r--r--src/tests/elementary/elm_test_box.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_test_box.c b/src/tests/elementary/elm_test_box.c
index e5a8683..8ec5111 100644
--- a/src/tests/elementary/elm_test_box.c
+++ b/src/tests/elementary/elm_test_box.c
@@ -41,8 +41,42 @@ EFL_START_TEST(elm_atspi_role_get)
41} 41}
42EFL_END_TEST 42EFL_END_TEST
43 43
44EFL_START_TEST(elm_box_disabled_test)
45{
46 Evas_Object *win, *box, *o;
47 int i;
48
49 win = win_add(NULL, "box", ELM_WIN_BASIC);
50
51 box = elm_box_add(win);
52 elm_win_resize_object_add(win, box);
53
54 for (i = 0; i < 3; ++i)
55 {
56 o = elm_button_add(box);
57 elm_box_pack_end(box, o);
58 }
59
60 elm_object_disabled_set(box, EINA_TRUE);
61 elm_object_disabled_set(box, EINA_TRUE);
62 ck_assert_int_eq(elm_object_disabled_get(box), EINA_TRUE);
63 ck_assert_int_eq(elm_object_disabled_get(o), EINA_TRUE);
64 elm_object_disabled_set(box, EINA_FALSE);
65 ck_assert_int_eq(elm_object_disabled_get(box), EINA_FALSE);
66 ck_assert_int_eq(elm_object_disabled_get(o), EINA_FALSE);
67 elm_object_disabled_set(box, EINA_TRUE);
68 elm_object_disabled_set(o, EINA_TRUE);
69 ck_assert_int_eq(elm_object_disabled_get(box), EINA_TRUE);
70 ck_assert_int_eq(elm_object_disabled_get(o), EINA_TRUE);
71 elm_object_disabled_set(box, EINA_FALSE);
72 ck_assert_int_eq(elm_object_disabled_get(box), EINA_FALSE);
73 ck_assert_int_eq(elm_object_disabled_get(o), EINA_TRUE);
74}
75EFL_END_TEST
76
44void elm_test_box(TCase *tc) 77void elm_test_box(TCase *tc)
45{ 78{
46 tcase_add_test(tc, elm_box_legacy_type_check); 79 tcase_add_test(tc, elm_box_legacy_type_check);
47 tcase_add_test(tc, elm_atspi_role_get); 80 tcase_add_test(tc, elm_atspi_role_get);
81 tcase_add_test(tc, elm_box_disabled_test);
48} 82}