summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtooltip/tst_qtooltip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtooltip/tst_qtooltip.cpp')
-rw-r--r--tests/auto/qtooltip/tst_qtooltip.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/qtooltip/tst_qtooltip.cpp b/tests/auto/qtooltip/tst_qtooltip.cpp
index 2ad74a3..283effa 100644
--- a/tests/auto/qtooltip/tst_qtooltip.cpp
+++ b/tests/auto/qtooltip/tst_qtooltip.cpp
@@ -112,13 +112,14 @@ void tst_QToolTip::task183679()
Widget_task183679 widget;
widget.show();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&widget);
-#endif
+ QApplication::setActiveWindow(&widget);
+ QTest::qWaitForWindowShown(&widget);
+ QTest::qWait(30);
+
widget.showDelayedToolTip(100);
QTest::qWait(300);
- QVERIFY(QToolTip::isVisible());
+ QTRY_VERIFY(QToolTip::isVisible());
QTest::keyPress(&widget, key);