diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-02 18:10:26 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-02 18:10:26 (GMT) |
commit | 78b2e552cca92859b2c126751ca5fc6fd83dd5cf (patch) | |
tree | d42ba4930fd4b3c17515504994b8ec02e486d2ab /tests/auto/qlistview | |
parent | ac94288ba71722981894fc7577b781aa76d5f7de (diff) | |
download | Qt-78b2e552cca92859b2c126751ca5fc6fd83dd5cf.zip Qt-78b2e552cca92859b2c126751ca5fc6fd83dd5cf.tar.gz Qt-78b2e552cca92859b2c126751ca5fc6fd83dd5cf.tar.bz2 |
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qlistview')
-rw-r--r-- | tests/auto/qlistview/tst_qlistview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp index 24a553f..98001c8 100644 --- a/tests/auto/qlistview/tst_qlistview.cpp +++ b/tests/auto/qlistview/tst_qlistview.cpp @@ -1787,8 +1787,10 @@ void tst_QListView::task262152_setModelColumnNavigate() view.setModelColumn(1); view.show(); + QApplication::setActiveWindow(&view); QTest::qWaitForWindowShown(&view); - QTest::qWait(120); + QTest::qWait(30); + QTRY_COMPARE(static_cast<QWidget *>(&view), QApplication::activeWindow()); QTest::keyClick(&view, Qt::Key_Down); QTest::qWait(30); QTRY_COMPARE(view.currentIndex(), model.index(1,1)); |