summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbuttongroup
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-30 13:57:35 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-30 13:58:46 (GMT)
commitfa3cda0324324f595d0d1231027443673b7c05ea (patch)
tree8916ad1f9204006a5ace3a564810e0cd57fe1a01 /tests/auto/qbuttongroup
parent3fa5162526a2d0dba0abd00c52f44ac93f9d78f3 (diff)
downloadQt-fa3cda0324324f595d0d1231027443673b7c05ea.zip
Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.gz
Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.bz2
Stabilize more test on X11
Each times the test are run, pulse show different failures.
Diffstat (limited to 'tests/auto/qbuttongroup')
-rw-r--r--tests/auto/qbuttongroup/tst_qbuttongroup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qbuttongroup/tst_qbuttongroup.cpp b/tests/auto/qbuttongroup/tst_qbuttongroup.cpp
index 502c2d1..11c1f47 100644
--- a/tests/auto/qbuttongroup/tst_qbuttongroup.cpp
+++ b/tests/auto/qbuttongroup/tst_qbuttongroup.cpp
@@ -173,10 +173,11 @@ void tst_QButtonGroup::arrowKeyNavigation()
dlg.show();
qApp->setActiveWindow(&dlg);
+ QTest::qWaitForWindowShown(&dlg);
bt1.setFocus();
- QVERIFY(bt1.hasFocus());
+ QTRY_VERIFY(bt1.hasFocus());
QTest::keyClick(&bt1, Qt::Key_Right);
QVERIFY(pb.hasFocus());