summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcombobox
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-25 10:47:46 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-25 10:56:06 (GMT)
commitb463bd91f5e19ec597990ea736ee51a4baaca338 (patch)
tree21021d062724228cdc32ea44cb98f0fc28f3715d /tests/auto/qcombobox
parent931a81a116dd453b1714f0faa2be42bddcd066aa (diff)
downloadQt-b463bd91f5e19ec597990ea736ee51a4baaca338.zip
Qt-b463bd91f5e19ec597990ea736ee51a4baaca338.tar.gz
Qt-b463bd91f5e19ec597990ea736ee51a4baaca338.tar.bz2
stabilize tests on X11
Diffstat (limited to 'tests/auto/qcombobox')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index af71961..bd5cd70 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -2516,10 +2516,12 @@ void tst_QComboBox::task_QTBUG_1071_changingFocusEmitsActivated()
layout.addWidget(&edit);
w.show();
+ QApplication::setActiveWindow(&w);
QTest::qWaitForWindowShown(&w);
cb.clearEditText();
cb.setFocus();
QApplication::processEvents();
+ QTRY_VERIFY(cb.hasFocus());
QTest::keyClick(0, '1');
QCOMPARE(spy.count(), 0);
edit.setFocus();