summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlistview
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-29 15:15:49 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-30 09:21:48 (GMT)
commitc33c3eab6fc510634f00eb001ce5c5860083ba82 (patch)
tree731debe85eef2620eccd21f119a4d598aadafcac /tests/auto/qlistview
parentf4c2e64e4700c54750a82bf5a2d6c575afb1cde6 (diff)
downloadQt-c33c3eab6fc510634f00eb001ce5c5860083ba82.zip
Qt-c33c3eab6fc510634f00eb001ce5c5860083ba82.tar.gz
Qt-c33c3eab6fc510634f00eb001ce5c5860083ba82.tar.bz2
Stabilize listview test
Diffstat (limited to 'tests/auto/qlistview')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index b51434f..499fb0b 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1630,7 +1630,9 @@ void tst_QListView::task254449_draggingItemToNegativeCoordinates()
} delegate;
list.setItemDelegate(&delegate);
- QTest::qWait(200); //makes sure the layout is done
+ delegate.numPaints = 0;
+ QTest::qWaitForWindowShown(&list); //makes sure the layout is done
+ QTRY_VERIFY(delegate.numPaints > 0);
const QPoint topLeft(-6, 0);
list.setPositionForIndex(topLeft, index);