diff options
author | junkyu han <junkyu.han@samsung.com> | 2017-05-23 13:29:26 +0900 |
---|---|---|
committer | junkyu han <junkyu.han@samsung.com> | 2017-05-23 04:44:54 +0000 |
commit | eb83cbb37e725f49d710fae2bbc37bdbc3cb8ec6 (patch) | |
tree | 98931b8371eaaf1789b8223e96e0da6a65af2fe5 /test | |
parent | e09f5e4fdf13ff750c7411f272ea7c7963e9a8b2 (diff) | |
download | w3-home-eb83cbb37e725f49d710fae2bbc37bdbc3cb8ec6.tar.gz w3-home-eb83cbb37e725f49d710fae2bbc37bdbc3cb8ec6.tar.bz2 w3-home-eb83cbb37e725f49d710fae2bbc37bdbc3cb8ec6.zip |
Add changed callback for status util events
Change-Id: I5b0d8001f98c544b268ed02ce8695da1c236ae44
Diffstat (limited to 'test')
-rwxr-xr-x | test/feature_test/group_feature_moments_status_view_ui.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/test/feature_test/group_feature_moments_status_view_ui.c b/test/feature_test/group_feature_moments_status_view_ui.c index 462f3e2..0007018 100755 --- a/test/feature_test/group_feature_moments_status_view_ui.c +++ b/test/feature_test/group_feature_moments_status_view_ui.c @@ -23,7 +23,7 @@ extern Evas_Object *__t__get_moments_status_callsignal(void); extern Evas_Object *__t__get_moments_status_callsignal(void); extern Evas_Object *__t__get_moments_status_network(void); extern void __t__moments_restore_status_battery(void); -extern void __t__moments_restore_status_callsignal(void); +extern void __t__moments_restore_status_call_network_service_state(void); extern void __t__layout_mouse_down(Evas_Object *layout, int down_x, int down_y); extern void __t__layout_mouse_up(Evas_Object *layout, int down_x, int down_y); @@ -185,6 +185,7 @@ static unit_case_func_t __continue_check_status_battery_icon_change(void *data) } if (percent >= 100) { + __t__moments_restore_status_battery(); TEST_CASE_DONE(s_info.group); } @@ -219,8 +220,6 @@ static unit_case_func_t __case_check_status_view_callsignal(void *data) TEST_ASSERT_EQUAL_INT_UPGRADE(MOMENTS_STATUS_UTIL_ICON_W, w); TEST_ASSERT_EQUAL_INT_UPGRADE(MOMENTS_STATUS_UTIL_ICON_H, h); - //moments_status_callsignal_icon_hide(); - moments_status_callsignal_update(call_strength, is_roaming); TEST_CASE_CONTINUE(0.1, __continue_check_status_callsignal_icon_change, &call_strength); @@ -236,8 +235,6 @@ static unit_case_func_t __continue_check_status_callsignal_icon_change(void *dat TEST_ASSERT_EQUAL_STRING(__t__callsignal_type[call_signal_index], edje_object_part_state_get(elm_layout_edje_get(callsignal), "icon_image", &val)); if (strength == 5 && !is_roaming) { - main_s *info = main_get_info(); - //__t__layout_mouse_up(info->layout, 0, 0); TEST_CASE_DONE(s_info.group); } @@ -306,6 +303,7 @@ static unit_case_func_t __continue_check_status_network_icon_change(void *data) if (network_state->network_type == 14 && network_state->packet_type == 18) { main_s *info = main_get_info(); + __t__moments_restore_status_call_network_service_state(); __t__layout_mouse_up(info->layout, 0, 0); TEST_CASE_DONE(s_info.group); } @@ -337,16 +335,6 @@ void group_feature_moments_status_view_ui(unit_group_t * group) TEST_CASE_ADD(s_info.group, __case_check_status_view_network, NULL); TEST_GROUP_RUN(s_info.group); - - /*if (s_info.group_timer) { - ecore_timer_del(s_info.group_timer); - s_info.group_timer = NULL; - } - - s_info.current_step = 0; - s_info.current_case = 0; - s_info.group = group; - s_info.group_timer = ecore_timer_add(0.1, __group_timer_callback, NULL);*/ } static Eina_Bool __group_timer_callback(void * data) |