summaryrefslogtreecommitdiff
path: root/src/tests/edje/edje_test_edje.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-05-30 13:34:57 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-05-30 14:39:24 +0900
commitbca55bb52f2325b9816b809c250e97b44da01f35 (patch)
tree5099dad1ebbabd3a401dda80ea2e5d034827c71a /src/tests/edje/edje_test_edje.c
parent63518c4c2c8b08dcdd410b274d788c9dcb48a60a (diff)
edje: Add test case for signal_recursive_process
Diffstat (limited to 'src/tests/edje/edje_test_edje.c')
-rw-r--r--src/tests/edje/edje_test_edje.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index 9d31544fd6..af88fa8d84 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -867,6 +867,39 @@ START_TEST(edje_test_message_send_eo)
867} 867}
868END_TEST 868END_TEST
869 869
870START_TEST(edje_test_signals)
871{
872 Evas *evas;
873 Evas_Object *obj;
874 const char *state;
875
876 evas = EDJE_TEST_INIT_EVAS();
877
878 obj = efl_add(EDJE_OBJECT_CLASS, evas,
879 efl_file_set(efl_added, test_layout_get("test_signals.edj"), "level1"),
880 efl_gfx_size_set(efl_added, 320, 240),
881 efl_gfx_visible_set(efl_added, 1));
882
883 edje_object_signal_emit(obj, "mouse,in", "text");
884
885 edje_object_message_signal_process(obj);
886 state = edje_object_part_state_get(obj, "group:group:text", NULL);
887 ck_assert_str_eq(state, "default");
888
889 edje_object_message_signal_process(obj);
890 state = edje_object_part_state_get(obj, "group:group:text", NULL);
891 ck_assert_str_eq(state, "default");
892
893 edje_object_message_signal_recursive_process(obj);
894 state = edje_object_part_state_get(obj, "group:group:text", NULL);
895 ck_assert_str_eq(state, "over");
896
897 efl_del(obj);
898
899 EDJE_TEST_FREE_EVAS();
900}
901END_TEST
902
870void edje_test_edje(TCase *tc) 903void edje_test_edje(TCase *tc)
871{ 904{
872 tcase_add_test(tc, edje_test_edje_init); 905 tcase_add_test(tc, edje_test_edje_init);
@@ -890,4 +923,5 @@ void edje_test_edje(TCase *tc)
890 tcase_add_test(tc, edje_test_combine_keywords); 923 tcase_add_test(tc, edje_test_combine_keywords);
891 tcase_add_test(tc, edje_test_message_send_legacy); 924 tcase_add_test(tc, edje_test_message_send_legacy);
892 tcase_add_test(tc, edje_test_message_send_eo); 925 tcase_add_test(tc, edje_test_message_send_eo);
926 tcase_add_test(tc, edje_test_signals);
893} 927}