Add some more output to debug a flaky test.

Task-number: QTBUG-23638

Change-Id: Ib6a8634ede4b6461e41ce6843ac2654dcd1999f5
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
Stephen Kelly 2012-04-19 16:52:02 +02:00 committed by Qt by Nokia
parent 8e09e0dc45
commit b780196a95

View File

@ -2999,7 +2999,10 @@ void tst_QTreeView::styleOptionViewItem()
QItemSelection sel(model.index(0,0), model.index(0,modelColumns-1));
QRect rect;
view.aiv_priv()->renderToPixmap(sel.indexes(), &rect);
QTRY_VERIFY(delegate.count == visibleColumns);
if (delegate.count != visibleColumns) {
qDebug() << rect << view.rect() << view.isVisible();
}
QTRY_COMPARE(delegate.count, visibleColumns);
}
#endif
@ -3024,7 +3027,10 @@ void tst_QTreeView::styleOptionViewItem()
QItemSelection sel(model.index(0,0), model.index(0,modelColumns-1));
QRect rect;
view.aiv_priv()->renderToPixmap(sel.indexes(), &rect);
QTRY_VERIFY(delegate.count == visibleColumns);
if (delegate.count != visibleColumns) {
qDebug() << rect << view.rect() << view.isVisible();
}
QTRY_COMPARE(delegate.count, visibleColumns);
#endif
//test dynamic models