diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-29 15:15:49 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 09:21:48 (GMT) |
commit | c33c3eab6fc510634f00eb001ce5c5860083ba82 (patch) | |
tree | 731debe85eef2620eccd21f119a4d598aadafcac | |
parent | f4c2e64e4700c54750a82bf5a2d6c575afb1cde6 (diff) | |
download | Qt-c33c3eab6fc510634f00eb001ce5c5860083ba82.zip Qt-c33c3eab6fc510634f00eb001ce5c5860083ba82.tar.gz Qt-c33c3eab6fc510634f00eb001ce5c5860083ba82.tar.bz2 |
Stabilize listview test
-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 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); |