~josharenson/unity8/qa_helpers

« back to all changes in this revision

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

  • Committer: Josh Arenson
  • Date: 2015-05-12 00:00:50 UTC
  • mfrom: (1757.1.15 unity8)
  • Revision ID: joshua.arenson@canonical.com-20150512000050-mt2cbx3a7p039zfw
Resolved merge conflicts

[ Albert Astals Cid ]
* Make runtests fake a test error if make fails
* Make the test more stable
* Use dbus-test-runner instead of dbus-launch
* DirectionalDragArea: improvements & API grooming (LP: #1417920)
* Fix EdgeDragEvaluator when a drag can happen both ways
  (Direction.Horizontal)
[ Josh Arenson ]
* Remove panelHeight property as it is unused.
[ Leo Arias ]
* Initial clean up of the autopilot tests set up. Removed the touch
  device from the test case. Moved the restart of unity to a fixture.
  Removed the unused DragMixin. Updated the setUpClass to use
  process_helpers. Removed the workaround for bug #1238417, already
  fixed. Use the toolkit helper to set the testability environment
  variable. Fixed the indicators base class that was restarting unity
  twice. (LP: #1238417, #1447206)
* Use the base class from the toolkit in autopilot tests.
[ Michael Zanetti ]
* emit application-stop when we're going down (LP: #1326513)
[ Michał Sawicz ]
* UNITY_SCOPES_LIST is no more
[ handsome_feng<445865575@qq.com> ]
* When click the favorite scope in Dash Manager , it just return to
  the corresponding scope page. (LP: #1447056)

Show diffs side-by-side

added added

removed removed

Lines of Context:
973
973
        QCOMPARE(lvwph->contentY(), 1258.);
974
974
        QCOMPARE(lvwph->m_headerItemShownHeight, 0.);
975
975
 
976
 
        changeContentY(-1700);
977
 
 
 
976
        changeContentY(-800);
 
977
        QTRY_COMPARE(lvwph->m_visibleItems.count(), 5);
 
978
        changeContentY(-400);
 
979
        QTRY_COMPARE(lvwph->m_visibleItems.count(), 8);
 
980
        changeContentY(-200);
 
981
        QTRY_COMPARE(lvwph->m_visibleItems.count(), 10);
 
982
        changeContentY(-300);
978
983
        QTRY_COMPARE(lvwph->m_visibleItems.count(), 12);
 
984
 
979
985
        QCOMPARE(lvwph->m_firstVisibleIndex, 0);
980
986
        verifyItem(0, -308., 75., true);
981
987
        verifyItem(1, -233., 75., true);