summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-06 08:15:42 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-06 08:16:41 (GMT)
commitf18ea32865521e21f47ea2745181e0e70db0266f (patch)
tree67494a648c687724869e1a3a219d72bb6f675a8c /tests/auto/qwidget/tst_qwidget.cpp
parent146988463cc0d03be415aa8ff07031b6bcf27975 (diff)
downloadQt-f18ea32865521e21f47ea2745181e0e70db0266f.zip
Qt-f18ea32865521e21f47ea2745181e0e70db0266f.tar.gz
Qt-f18ea32865521e21f47ea2745181e0e70db0266f.tar.bz2
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 92658a6..5ab273c 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -9118,7 +9118,7 @@ void tst_QWidget::paintOutsidePaintEvent()
widget.show();
QTest::qWaitForWindowShown(&widget);
- QTest::qWait(20);
+ QTest::qWait(60);
const QPixmap before = QPixmap::grabWindow(widget.winId());
@@ -9128,6 +9128,7 @@ void tst_QWidget::paintOutsidePaintEvent()
painter.fillRect(child1.rect(), Qt::red);
painter.end();
XSync(QX11Info::display(), false); // Flush output buffer.
+ QTest::qWait(60);
const QPixmap after = QPixmap::grabWindow(widget.winId());