diff options
author | jin0.kim <jin0.kim@samsung.com> | 2017-05-24 13:25:45 +0830 |
---|---|---|
committer | YOUNG HUN JO <hoon.cho@samsung.com> | 2017-05-24 06:16:49 +0000 |
commit | 2f57eb6fd8652709e3625f41a88c44cc0266fbdf (patch) | |
tree | e01b1afe0acf2d57547d1221094d06109a150b6e | |
parent | b98362c7b4c886f69df7a3465f8be181369776a6 (diff) | |
download | w3-home-2f57eb6fd8652709e3625f41a88c44cc0266fbdf.tar.gz w3-home-2f57eb6fd8652709e3625f41a88c44cc0266fbdf.tar.bz2 w3-home-2f57eb6fd8652709e3625f41a88c44cc0266fbdf.zip |
Fix test fail
Change-Id: I0094ea11f7b6d488c1430431c6fd9cd8876cf32f
3 files changed, 20 insertions, 1 deletions
diff --git a/test/feature_test/group_feature_moments_controls_state.c b/test/feature_test/group_feature_moments_controls_state.c index 9729bef..117359b 100755 --- a/test/feature_test/group_feature_moments_controls_state.c +++ b/test/feature_test/group_feature_moments_controls_state.c @@ -50,7 +50,7 @@ static void __group_tear_down(void *data) static void __set_up(void) { - ecore_timer_add(0.2, s_info.group->set_up_complete, s_info.group); + s_info.group->set_up_complete(s_info.group); } static void __tear_down(void) diff --git a/test/feature_test/group_feature_moments_status_behavior.c b/test/feature_test/group_feature_moments_status_behavior.c index 3cbc3c2..ac97042 100755 --- a/test/feature_test/group_feature_moments_status_behavior.c +++ b/test/feature_test/group_feature_moments_status_behavior.c @@ -86,6 +86,18 @@ static void __tear_down(void) s_info.group->tear_down_complete(s_info.group); } +static void __group_tear_down(void *data) +{ + if (moments_get_visible()) { + main_s * info = main_get_info(); + __t__layout_mouse_up(info->layout, 180, 50); + + TEST_GROUP_TEAR_DOWN_DONE(0.3, s_info.group); + } + + TEST_GROUP_TEAR_DOWN_DONE(0.0, s_info.group); +} + static unit_case_func_t __continue_check_status_flight_on(void *data); static unit_case_func_t __case_check_status_flight_on(void *data) { @@ -222,6 +234,7 @@ void group_feature_moments_status_behavior(unit_group_t * group) TEST_CASE_ADD(s_info.group, __case_check_status_flightoff_serviceoff_wifioff, NULL); TEST_CASE_ADD(s_info.group, __case_check_status_flightoff_serviceon_wifioff, NULL); TEST_CASE_ADD(s_info.group, __case_check_status_flightoff_serviceon_wifion, NULL); + TEST_GROUP_TEAR_DOWN(s_info.group, __group_tear_down); TEST_GROUP_RUN(s_info.group); } 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 9df7a9f..8322e3f 100755 --- a/test/feature_test/group_feature_moments_status_view_ui.c +++ b/test/feature_test/group_feature_moments_status_view_ui.c @@ -95,6 +95,11 @@ static void __tear_down(void) s_info.group->tear_down_complete(s_info.group); } +static void __group_tear_down(void *data) +{ + TEST_GROUP_TEAR_DOWN_DONE(0.1, s_info.group); +} + static unit_case_func_t __case_check_status_view_layout(void *data) { if (moments_get_visible()) { @@ -331,6 +336,7 @@ void group_feature_moments_status_view_ui(unit_group_t * group) TEST_CASE_ADD(s_info.group, __case_check_status_view_battery, NULL); TEST_CASE_ADD(s_info.group, __case_check_status_view_callsignal, NULL); TEST_CASE_ADD(s_info.group, __case_check_status_view_network, NULL); + TEST_GROUP_TEAR_DOWN(s_info.group, __group_tear_down); TEST_GROUP_RUN(s_info.group); } |