summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-22 13:21:29 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-22 13:56:16 (GMT)
commit63b8a706c57ed292d82fc16a446daa543cf12a38 (patch)
treeb0a7ddf32d2c33434457bf62625997f59ee79985 /tests/auto
parente4954731369d9b339a79ec9fe737d70ef6dc4755 (diff)
downloadQt-63b8a706c57ed292d82fc16a446daa543cf12a38.zip
Qt-63b8a706c57ed292d82fc16a446daa543cf12a38.tar.gz
Qt-63b8a706c57ed292d82fc16a446daa543cf12a38.tar.bz2
stabilize QListView test
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index 6e211ae..3968529 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1132,6 +1132,7 @@ void tst_QListView::selection()
#endif
v.show();
+ QTest::qWaitForWindowShown(&v);
QApplication::processEvents();
v.setSelection(selectionRect, QItemSelectionModel::ClearAndSelect);
@@ -1184,6 +1185,7 @@ void tst_QListView::scrollTo()
lv.setModel(&model);
lv.setFixedSize(100, 200);
lv.show();
+ QTest::qWaitForWindowShown(&lv);
//by default, the list view scrolls per item and has no wrapping
QModelIndex index = model.index(6,0);
@@ -1782,12 +1784,13 @@ void tst_QListView::task262152_setModelColumnNavigate()
view.setModelColumn(1);
view.show();
- QTest::qWait(100);
+ QTest::qWaitForWindowShown(&view);
+ QTest::qWait(10);
QTest::keyClick(&view, Qt::Key_Down);
- QTest::qWait(100);
+ QTest::qWait(10);
QCOMPARE(view.currentIndex(), model.index(1,1));
QTest::keyClick(&view, Qt::Key_Down);
- QTest::qWait(100);
+ QTest::qWait(10);
QCOMPARE(view.currentIndex(), model.index(2,1));
}