~unity-team/unity8/trunk

« back to all changes in this revision

Viewing changes to tests/plugins/DashViews/listviewwithpageheadertest.cpp

  • Committer: CI bot
  • Author(s): Michael Zanetti, Michał Sawicz, Albert Astals
  • Date: 2014-03-14 15:44:32 UTC
  • mfrom: (734.3.21 fix-5.2-tests)
  • Revision ID: ps-jenkins@lists.canonical.com-20140314154432-16415v664pofnsq2
Fix tests under Qt 5.2. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1281
1281
 
1282
1282
    void testShowHeaderHalfShown()
1283
1283
    {
1284
 
#if (QT_VERSION < QT_VERSION_CHECK(5, 1, 0))
1285
 
        QSKIP("This test is extremely unstable in 5.0.x");
1286
 
#endif
1287
1284
        changeContentY(20);
1288
1285
 
1289
1286
        QTRY_COMPARE(lvwph->m_visibleItems.count(), 4);
1860
1857
        model->setProperty(4, "size", 10);
1861
1858
        model->setProperty(5, "size", 10);
1862
1859
        model->setProperty(6, "size", 10);
1863
 
#if (QT_VERSION > QT_VERSION_CHECK(5, 0, 3))
1864
 
        QTRY_COMPARE(lvwph->m_minYExtent, 210.);
1865
 
#endif
1866
1860
        QTRY_COMPARE(lvwph->m_headerItem->y(), -lvwph->m_minYExtent);
1867
1861
    }
1868
1862