~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-yakkety-landing-078

« back to all changes in this revision

Viewing changes to tests/qmltests/Menus/tst_CalendarMenu.qml

  • Committer: Lukáš Tinkl
  • Date: 2016-09-07 09:14:24 UTC
  • mto: This revision was merged to the branch mainline in revision 163.
  • Revision ID: lukas.tinkl@canonical.com-20160907091424-myq2ma1nzudqoml9
more explicit test

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    property var date2: new Date(2013, 5, 10)
30
30
    property var date3: new Date(2014, 6, 10)
31
31
    property var date4: new Date(2016, 9, 30)
 
32
    property var date5: new Date(2016, 9, 31)
32
33
 
33
34
    Flickable {
34
35
        id: flickable
89
90
        function test_double30thOctober() {
90
91
            calendar.selectedDate = date4;
91
92
            calendar.selectedDate = calendar.selectedDate.addDays(1);
92
 
            verify(calendar.selectedDate.getDay() !== date4.getDay());
 
93
            compare(calendar.selectedDate, date5, "The next day after 2016-10-30 is not 2016-10-31");
93
94
        }
94
95
    }
95
96
}