summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-19 14:44:26 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-19 14:45:50 (GMT)
commitc48ba6b516b46775439dc3c86b21bf9ce9c7f23a (patch)
tree01f86de93ebbc4ee2f18b3ddfcb4f4b8b0748fab /tests
parent10221602edb39b7c7ed9e0c9608f64a539adcdec (diff)
downloadQt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.zip
Qt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.tar.gz
Qt-c48ba6b516b46775439dc3c86b21bf9ce9c7f23a.tar.bz2
Add a QTest::qWaitForWindowShown for a failing qlistview autotest
Reviewed-by: trustme
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index 596ac9b..605b3e3 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1895,6 +1895,8 @@ void tst_QListView::taskQTBUG_5877_skippingItemInPageDownUp()
vu.setModel(&model);
vu.show();
+ QTest::qWaitForWindowShown(&vu);
+
int itemHeight = vu.visualRect(model.index(0, 0)).height();
int visibleRowCount = vu.height() / itemHeight;
int scrolledRowCount = visibleRowCount - 1;