From: Alan Alpert Date: Mon, 16 Jan 2012 08:30:58 +0000 (+1000) Subject: Wait for polish at the start of addOrRemoveBeforeVisible X-Git-Tag: qt-v5.0.0-alpha1~677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f730bc3ae4cf18c46e513bf1db055b2d9255fdc;p=profile%2Fivi%2Fqtdeclarative.git Wait for polish at the start of addOrRemoveBeforeVisible Change-Id: I1cf13af7e9b854cee7754b31643438eab3085084 Reviewed-by: Bea Lam --- 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