From 54a547549cb095ec31168ae529458e539a43922d Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Tue, 22 Nov 2011 17:04:57 +1000 Subject: [PATCH] tst_QQuickGridView::unaligned() was failing on mac Failing when threaded renderer is enabled. Ensure remove is applied before testing the result. Change-Id: I156efb43735ee0efd6a6f0b9a721979aafe17605 Reviewed-by: Bea Lam --- tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp b/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp index 1dbacb1..9cd39fc 100644 --- a/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp +++ b/tests/auto/declarative/qquickgridview/tst_qquickgridview.cpp @@ -3487,7 +3487,7 @@ void tst_QQuickGridView::unaligned() // removing model.removeItems(7, 10); - qApp->processEvents(); + QTRY_COMPARE(model.count(), gridview->count()); for (int i = 0; i < 18; ++i) { QQuickItem *item = 0; QTRY_VERIFY(item = findItem(contentItem, "wrapper", i)); -- 2.7.4