diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-16 13:34:01 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-16 13:46:09 (GMT) |
commit | c80529584a955bea1b9e49cde0775c9ce53ce1c8 (patch) | |
tree | d801eefab2d5e9d420f5612301a1060b361ca972 /tests/auto/qdoublespinbox | |
parent | 51d2e7756e33ee510fdcf53d5e2ae6f96f2b1c70 (diff) | |
download | Qt-c80529584a955bea1b9e49cde0775c9ce53ce1c8.zip Qt-c80529584a955bea1b9e49cde0775c9ce53ce1c8.tar.gz Qt-c80529584a955bea1b9e49cde0775c9ce53ce1c8.tar.bz2 |
Stabilize tests
Diffstat (limited to 'tests/auto/qdoublespinbox')
-rw-r--r-- | tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp b/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp index e7bb93f..502e983 100644 --- a/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp +++ b/tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp @@ -775,9 +775,11 @@ void tst_QDoubleSpinBox::editingFinished() layout->addWidget(box2); testFocusWidget->show(); + QApplication::setActiveWindow(testFocusWidget); QTest::qWait(10); - QTRY_VERIFY(box->isActiveWindow()); + QTRY_VERIFY(testFocusWidget->isActiveWindow()); box->setFocus(); + QTRY_VERIFY(box->hasFocus()); QSignalSpy editingFinishedSpy1(box, SIGNAL(editingFinished())); QSignalSpy editingFinishedSpy2(box2, SIGNAL(editingFinished())); |