From 767e833c6cd83e233adf00acea15a2581e905299 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 23 Sep 2009 13:30:31 +0200 Subject: Fix tst_QWidget::showMaximized on X11 On X11 We have to wait we get the size change from the window manager Reviewed-by: Jason Barron --- tests/auto/qwidget/tst_qwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 6cfa23b..b7ffd15 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -2000,7 +2000,7 @@ void tst_QWidget::showMaximized() QWidget widget; widget.setGeometry(0, 0, 10, 10); widget.showMaximized(); - QVERIFY(widget.size().width() > 20 && widget.size().height() > 20); + QTRY_VERIFY(widget.size().width() > 20 && widget.size().height() > 20); } #ifdef QT3_SUPPORT -- cgit v0.12