on xenial help sign in
account for the otherdelegate without margins in the test
commitaeee88bc5de435d43f5e42c05d210007717a49e8 authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 11 May 2016, 14:44 (10 years ago) parent3b4af62
1 file changed+5−1
tests/plugins/Dash/listviewwithpageheadertest.cpp+5−1
tests/plugins/Dash/listviewwithpageheadertest.cpp+5−1
@@ -45,7 +45,11 @@ private:
4545 QTRY_COMPARE(item->y(), pos);
4646 QTRY_COMPARE(item->height(), height);
4747 QCOMPARE(QQuickItemPrivate::get(item->m_item)->culled, culled);
48− QCOMPARE(item->m_item->width(), lvwph->width() - 20);
48+ if (lvwph->delegate() == otherDelegate) {
49+ QCOMPARE(item->m_item->width(), lvwph->width());
50+ } else {
51+ QCOMPARE(item->m_item->width(), lvwph->width() - 20);
52+ }
4953 }
5054
5155 void changeContentY(qreal change)