on xenial help sign in
Make test work both under xvfb and non xvfb
commit8a6773acd42fd411664a1bd238ad7c6bdd5e9533 authorAlbert Astals <albert.astals@canonical.com> dateMon 31 Mar 2014, 10:03 (13 years ago) parent8a99600
1 file changed+2−3
tests/plugins/DashViews/listviewwithpageheadertestsection.cpp+2−3
tests/plugins/DashViews/listviewwithpageheadertestsection.cpp+2−3
@@ -1680,12 +1680,11 @@ private Q_SLOTS:
16801680 verifyItem(18, 700, 50., false, QString(), true);
16811681 verifyItem(19, 750, 50., false, QString(), true);
16821682 verifyItem(20, 800, 50., false, QString(), true);
1683− QCOMPARE(lvwph->m_minYExtent, 5 * 1510./21. + 660 - 1670 + 50);
1684− QCOMPARE(lvwph->m_clipItem->y(), 1670.);
1683+ QCOMPARE(lvwph->m_clipItem->y(), lvwph->contentY());
1684+ QCOMPARE(lvwph->m_minYExtent, 5 * 1510./21. + 660 - lvwph->contentY() + 50);
16851685 QCOMPARE(lvwph->m_clipItem->clip(), false);
16861686 QCOMPARE(lvwph->m_headerItem->y(), 0.);
16871687 QCOMPARE(lvwph->m_headerItem->height(), 50.);
1688− QCOMPARE(lvwph->contentY(), 1670.);
16891688 QCOMPARE(lvwph->m_headerItemShownHeight, 0.);
16901689 }
16911690