Wait for polish at the start of addOrRemoveBeforeVisible
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 16 Jan 2012 08:30:58 +0000 (18:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jan 2012 08:36:17 +0000 (09:36 +0100)
Change-Id: I1cf13af7e9b854cee7754b31643438eab3085084
Reviewed-by: Bea Lam <bea.lam@nokia.com>
tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp

index ed7ee4d..e2bcbfd 100644 (file)
@@ -1040,6 +1040,7 @@ void tst_QQuickGridView::addOrRemoveBeforeVisible()
 
     gridview->setCurrentIndex(0);
     qApp->processEvents();
+    QTRY_COMPARE(QQuickItemPrivate::get(gridview)->polishScheduled, false);
 
     // scroll down until item 0 is no longer drawn
     // (bug not triggered if we just move using content y, since that doesn't