TC0600_focus: fix tc fail issue 65/159265/3
authorJunSeok, Kim <juns.kim@samsung.com>
Wed, 8 Nov 2017 02:51:08 +0000 (11:51 +0900)
committerJunSeok, Kim <juns.kim@samsung.com>
Wed, 8 Nov 2017 02:56:08 +0000 (11:56 +0900)
Changed waiting event from STACK_CHANGED to FOCUS_CHANGED for wait focus
changes

Change-Id: I5fbb6305c1e34b840f4e3129763de38b2adefcf9

src/0600_focus.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9b5743a..804be6f
@@ -195,7 +195,8 @@ tc_0601_focus_lower(E_TC *tc)
 
    // make tw_blue stack lower
    e_test_runner_req_win_stack_set(tc->runner, tw_blue, NULL, EINA_FALSE);
-   e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_LOWER);
+   res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_FOCUS_CHANGED);
+   EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
 
    // Expected focus result:
    // [Top] Green[focused] -> Red -> ... -> Blue [Bottom]
@@ -247,7 +248,8 @@ tc_0602_focus_raise(E_TC *tc)
 
    // make tw_red stack raise
    e_test_runner_req_win_stack_set(tc->runner, tw_red, NULL, EINA_TRUE);
-   e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_STACK_ABOVE);
+   res = e_test_runner_ev_wait(tc->runner, E_TC_EVENT_TYPE_FOCUS_CHANGED);
+   EINA_SAFETY_ON_FALSE_GOTO(res, cleanup);
 
    // Expected focus result:
    // [Top] Red[focused] -> Blue -> Green [Bottom]