static Eina_Bool
_tc_multi_wins_pre_run(E_TC *tc, Eina_Bool show_win)
{
- Eina_Bool res;
-
tc->data = E_NEW(E_TC_Data, 1);
EINA_SAFETY_ON_NULL_RETURN_VAL(tc->data, EINA_FALSE);
e_tc_win_geom_update(tc->data->tw_blue);
e_tc_win_show(tc->data->tw_blue);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
}
e_test_runner_work();
e_tc_win_geom_update(tw);
e_tc_win_show(tw);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_RETURN_VAL(res, EINA_FALSE);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
return EINA_TRUE;
}
// Raise Red
e_test_runner_req_win_stack_set(tc->runner, tw_red, NULL, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Red -> Blue -> Green [Bottom]
// Raise Green
e_test_runner_req_win_stack_set(tc->runner, tw_green, NULL, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Green -> Blue -> Red [Bottom]
// Raise Red on the Green
e_test_runner_req_win_stack_set(tc->runner, tw_red, tw_green, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Blue -> Red -> Green [Bottom]
// Raise Blue on the Red
e_test_runner_req_win_stack_set(tc->runner, tw_blue, tw_red, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Green -> Blue -> Red [Bottom]
// Raise Red on the Blue
e_test_runner_req_win_stack_set(tc->runner, tw_red, tw_blue, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Red -> Blue -> Green [Bottom]
// Lower Blue
e_test_runner_req_win_stack_set(tc->runner, tw_blue, NULL, EINA_FALSE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Green -> Red -> ... -> Blue [Bottom]
// Lower Green
e_test_runner_req_win_stack_set(tc->runner, tw_green, NULL, EINA_FALSE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] Blue -> Red -> ... -> Green [Bottom]
e_tc_win_show(tc->data->tw_red);
// wait for showing register_win
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
// Expected stack result:
// [Top] Red -> Green [Bottom]
e_tc_win_show(tc->data->tw_green);
// wait for showing register_win
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
// Expected stack result:
// [Top] Green -> Blue [Bottom]
e_tc_win_show(tc->data->tw_blue);
// wait for showing register_win
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
// Expected stack result:
// [Top] Blue -> Red [Bottom]
e_tc_win_geom_update(tw);
e_tc_win_show(tw);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
- EINA_SAFETY_ON_FALSE_RETURN_VAL(res, EINA_FALSE);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_VIS_ON);
return EINA_TRUE;
}
EINA_TRUE);
EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
e_test_runner_work();
EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
e_test_runner_req_win_stack_set(tc->runner, tw_parent, NULL, EINA_TRUE);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] tw_child -> tw_parent -> tw_main [Bottom]
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
-
list = e_test_runner_req_win_info_list_get(tc->runner);
EINA_SAFETY_ON_NULL_GOTO(list, cleanup);
// Raise Transient_for Parent window
e_test_runner_req_win_stack_set(tc->runner, tw_parent, NULL, EINA_TRUE);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] tw_child -> tw_parent -> tw_main [Bottom]
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
// lower tw_parent
e_test_runner_req_win_stack_set(tc->runner, tw_parent, NULL, EINA_FALSE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_LOWER);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_LOWER);
// Expected stack result:
// [Top] tw_main -> ... -> tw_child -> tw_parent [Bottom]
EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
e_test_runner_req_win_stack_set(tc->runner, tw_parent, tw_main, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_ABOVE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_ABOVE);
// Expected stack result:
// [Top] tw_child -> tw_parent -> tw_main [Bottom]
// raise tw_parent
e_test_runner_req_win_stack_set(tc->runner, tw_parent, NULL, EINA_TRUE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_RAISE);
// Expected stack result:
// [Top] tw_child -> tw_parent -> tw_main [Bottom]
e_test_runner_req_win_stack_set(tc->runner, tw_parent, tw_main, EINA_FALSE);
-
- res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_BELOW);
- EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
+ e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_BELOW);
// Expected stack result:
// [Top] tw_main -> tw_child -> tw_parent [Bottom]