ASSERT_FALSE(ev_result_vis->isVisible()) << "Window is visible"; \
} while (0)
+#define ASSERT_IF_VIS_ON(TEST_WINDOW) \
+ do { \
+ ASSERT_NE(TEST_WINDOW, nullptr) << "Window is NULL"; \
+ ev_result_vis = std::static_pointer_cast<visibleEventItem>(etRunner::get().waitEvent(TEST_WINDOW, E_TC_EVENT_TYPE_VIS_ON)); \
+ ASSERT_NE(ev_result_vis, nullptr) << "result is NULL"; \
+ if (ev_result_vis->result) \
+ { ASSERT_FALSE(ev_result_vis->isVisible()) << "Window is visible"; } \
+ } while (0)
+
+#define ASSERT_IF_VIS_OFF(TEST_WINDOW) \
+ do { \
+ ASSERT_NE(TEST_WINDOW, nullptr) << "Window is NULL"; \
+ ev_result_vis = std::static_pointer_cast<visibleEventItem>(etRunner::get().waitEvent(TEST_WINDOW, E_TC_EVENT_TYPE_VIS_OFF)); \
+ ASSERT_NE(ev_result_vis, nullptr) << "result is NULL"; \
+ if (ev_result_vis->result) \
+ { ASSERT_TRUE(ev_result_vis->isVisible()) << "Window is invisible"; } \
+ } while (0)
+
#define ASSERT_ROTATION(TEST_WINDOW, ANGLE) \
do { \
ASSERT_NE(TEST_WINDOW, nullptr) << "Window is NULL"; \