summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-05 19:41:06 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-05 19:46:05 +0200
commit8dbbff1dec967d043255e8cea2c4d32be3c1f9cd (patch)
tree706b0fd77d2569f71307465bb1f58944e88f58db /tests/auto/qwidget
parenta3fc0c3b6a45864c845e3a25640b967dd34fa6fc (diff)
Stabilize test on X11
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index b0a26c22e8..a4e5d88ccd 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -9024,12 +9024,11 @@ void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave()
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&parent);
#endif
- QTest::qWait(100);
+ QTest::qWait(150);
QCursor::setPos(child.mapToGlobal(QPoint(100, 100)));
- QTest::qWait(100);
// Make sure the cursor has entered the child.
- QVERIFY(child.numEnterEvents > 0);
+ QTRY_VERIFY(child.numEnterEvents > 0);
child.hide();
child.reset();