on xenial help sign in
Add new test that moves up/down a bit more

This new test is failing at the moment, that is correct since highlights a regression caused by this branch

commit62c4c24f7eac86967914befd08b16129e5877128 authorAlbert Astals <albert.astals@canonical.com> dateMon 4 Nov 2013, 15:16 (13 years ago) parent9ba807f
1 file changed+22
tests/plugins/ListViewWithPageHeader/listviewwithpageheadertest.cpp+22
tests/plugins/ListViewWithPageHeader/listviewwithpageheadertest.cpp+22
@@ -1589,6 +1589,28 @@ private Q_SLOTS:
15891589 QCOMPARE(lvwph->m_headerItemShownHeight, 0.);
15901590 }
15911591
1592+ void testMaximizeVisibleAreaTopWithHalfPageHeaderUpDown()
1593+ {
1594+ testMaximizeVisibleAreaTopWithHalfPageHeader();
1595+
1596+ changeContentY(-60);
1597+ changeContentY(15);
1598+
1599+ QTRY_COMPARE(lvwph->m_visibleItems.count(), 4);
1600+ QCOMPARE(lvwph->m_firstVisibleIndex, 0);
1601+ verifyItem(0, -140., 150., false);
1602+ verifyItem(1, 10., 200., false);
1603+ verifyItem(2, 210, 350., false);
1604+ verifyItem(3, 560, 350., true);
1605+ QCOMPARE(lvwph->m_minYExtent, 0.);
1606+ QCOMPARE(lvwph->m_clipItem->y(), 190.);
1607+ QCOMPARE(lvwph->m_clipItem->clip(), true);
1608+ QCOMPARE(lvwph->m_headerItem->y(), 140.);
1609+ QCOMPARE(lvwph->m_headerItem->height(), 50.);
1610+ QCOMPARE(lvwph->contentY(), 155.);
1611+ QCOMPARE(lvwph->m_headerItemShownHeight, 35.);
1612+ }
1613+
15921614 void testMaximizeVisibleAreaBottomWithHalfPageHeader()
15931615 {
15941616 changeContentY(430);