From 5f730bc3ae4cf18c46e513bf1db055b2d9255fdc Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Mon, 16 Jan 2012 18:30:58 +1000 Subject: [PATCH] Wait for polish at the start of addOrRemoveBeforeVisible Change-Id: I1cf13af7e9b854cee7754b31643438eab3085084 Reviewed-by: Bea Lam --- tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp b/tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp index ed7ee4d..e2bcbfd 100644 --- a/tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp +++ b/tests/auto/qtquick2/qquickgridview/tst_qquickgridview.cpp @@ -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 -- 2.7.4