diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-10 08:17:26 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-10 09:05:13 (GMT) |
commit | b8d44332bbbca1d065a07cba79ad179bd9c0197c (patch) | |
tree | 03bfe563238dc13cba07efb67f4f83594cdfe86d /tests/auto/qbuttongroup | |
parent | 53b4b458982fd9520ac710843fd5b68780adf159 (diff) | |
download | Qt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.zip Qt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.tar.gz Qt-b8d44332bbbca1d065a07cba79ad179bd9c0197c.tar.bz2 |
Stabilize some tests.
For the QFontMetrics test, the different way of computing the with of a
text returs different value (1 to 2 pixel difference).
So we need to make sure to use the same way to compute the with that the
one used to ellide.
Diffstat (limited to 'tests/auto/qbuttongroup')
-rw-r--r-- | tests/auto/qbuttongroup/tst_qbuttongroup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qbuttongroup/tst_qbuttongroup.cpp b/tests/auto/qbuttongroup/tst_qbuttongroup.cpp index 3530eb9..502c2d1 100644 --- a/tests/auto/qbuttongroup/tst_qbuttongroup.cpp +++ b/tests/auto/qbuttongroup/tst_qbuttongroup.cpp @@ -57,6 +57,8 @@ #include <qsettings.h> #endif +#include "../../shared/util.h" + class SpecialRadioButton: public QRadioButton { public: @@ -402,6 +404,8 @@ void tst_QButtonGroup::task106609() QSignalSpy spy2(buttons, SIGNAL(buttonClicked(int))); QTestEventLoop::instance().enterLoop(1); + QApplication::setActiveWindow(&dlg); + QTRY_COMPARE(QApplication::activeWindow(), &dlg); //qDebug() << "int:" << spy2.count() << "QAbstractButton*:" << spy1.count(); QCOMPARE(spy2.count(), 2); |