summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-15 10:35:17 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-03-15 11:23:09 -0400
commit721f1776db5dadee0e12226d1801b8a975ed7133 (patch)
tree2ca0bc8842c1b6f304f07af274b78ffa62151ba5 /src/tests
parent597b82444a54f0f8f1cfc5981bfd72671d041e6b (diff)
evas_events: prevent double event_freeze in evas_object_freeze_events_set
Summary: This patch prevent that event_freeze_count is greater than 1 in `evas_object_freeze_events_set` Test Plan: make check Reviewers: bu5hm4n, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8325
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/evas/evas_test_object.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_object.c b/src/tests/evas/evas_test_object.c
index ac4424e327..d2de52a58a 100644
--- a/src/tests/evas/evas_test_object.c
+++ b/src/tests/evas/evas_test_object.c
@@ -30,7 +30,29 @@ EFL_START_TEST(evas_object_various)
30} 30}
31EFL_END_TEST 31EFL_END_TEST
32 32
33EFL_START_TEST(evas_object_freeze_events)
34{
35 Evas *evas = EVAS_TEST_INIT_EVAS();
36 Evas_Object *obj = evas_object_rectangle_add(evas);
37
38 evas_object_freeze_events_set(obj, EINA_TRUE);
39 ck_assert_int_eq(evas_object_freeze_events_get(obj), EINA_TRUE);
40 evas_object_freeze_events_set(obj, EINA_FALSE);
41 ck_assert_int_eq(evas_object_freeze_events_get(obj), EINA_FALSE);
42
43 evas_object_freeze_events_set(obj, EINA_TRUE);
44 evas_object_freeze_events_set(obj, EINA_TRUE);
45 ck_assert_int_eq(evas_object_freeze_events_get(obj), EINA_TRUE);
46 evas_object_freeze_events_set(obj, EINA_FALSE);
47 ck_assert_int_eq(evas_object_freeze_events_get(obj), EINA_FALSE);
48 evas_object_freeze_events_set(obj, EINA_FALSE);
49 evas_object_freeze_events_set(obj, EINA_TRUE);
50 ck_assert_int_eq(evas_object_freeze_events_get(obj), EINA_TRUE);
51}
52EFL_END_TEST
53
33void evas_test_object(TCase *tc) 54void evas_test_object(TCase *tc)
34{ 55{
35 tcase_add_test(tc, evas_object_various); 56 tcase_add_test(tc, evas_object_various);
57 tcase_add_test(tc, evas_object_freeze_events);
36} 58}