on xenial help sign in
account for the otherdelegate without margins in the test
aeee88bAlbert Astals Cid
tests/plugins/Dash/listviewwithpageheadertest.cpp+5−1
@@ -45,7 +45,11 @@ private:
45 QTRY_COMPARE(item->y(), pos);
45 QTRY_COMPARE(item->y(), pos);
46 QTRY_COMPARE(item->height(), height);
46 QTRY_COMPARE(item->height(), height);
47 QCOMPARE(QQuickItemPrivate::get(item->m_item)->culled, culled);
47 QCOMPARE(QQuickItemPrivate::get(item->m_item)->culled, culled);
48+ if (lvwph->delegate() == otherDelegate) {
49+ QCOMPARE(item->m_item->width(), lvwph->width());
50+ } else {
48− QCOMPARE(item->m_item->width(), lvwph->width() - 20);
51+ QCOMPARE(item->m_item->width(), lvwph->width() - 20);
52+ }
49 }
53 }
50
54
51 void changeContentY(qreal change)
55 void changeContentY(qreal change)