aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-eds-tasks-config-files/.local/share/evolution/tasks/system/tasks.ics18
-rw-r--r--tests/test-eds-tasks.cpp19
2 files changed, 18 insertions, 19 deletions
diff --git a/tests/test-eds-tasks-config-files/.local/share/evolution/tasks/system/tasks.ics b/tests/test-eds-tasks-config-files/.local/share/evolution/tasks/system/tasks.ics
index 1d6dc7a..efde5f7 100644
--- a/tests/test-eds-tasks-config-files/.local/share/evolution/tasks/system/tasks.ics
+++ b/tests/test-eds-tasks-config-files/.local/share/evolution/tasks/system/tasks.ics
@@ -2,24 +2,24 @@ BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
-X-EVOLUTION-DATA-REVISION:2015-05-19T22:52:41.612439Z(53)
+X-EVOLUTION-DATA-REVISION:2015-05-07T21:14:49.315443Z(0)
BEGIN:VTODO
-UID:20150519T225233Z-3878-32011-1770-73@ubuntu-phablet
-DTSTAMP:20150519T225241Z
-DTSTART:20150520T120000
-RRULE:FREQ=DAILY
+UID:20150507T211449Z-4262-32011-1418-1@ubuntu-phablet
+DTSTAMP:20150508T211449Z
+DTSTART:20150508T164000
+RRULE:FREQ=WEEKLY;BYDAY=FR
SUMMARY:Alarm
CATEGORIES:x-canonical-alarm
-SEQUENCE:1
-LAST-MODIFIED:20150519T225241Z
+CREATED:20150507T211449Z
+LAST-MODIFIED:20150507T211449Z
BEGIN:VALARM
-X-EVOLUTION-ALARM-UID:20150519T225241Z-3878-32011-1770-78@ubuntu-phablet
+X-EVOLUTION-ALARM-UID:20150507T211449Z-4262-32011-1418-2@ubuntu-phablet
ACTION:AUDIO
ATTACH:file:///usr/share/sounds/ubuntu/ringtones/Suru arpeggio.ogg
TRIGGER;VALUE=DURATION;RELATED=START:PT0S
END:VALARM
BEGIN:VALARM
-X-EVOLUTION-ALARM-UID:20150519T225241Z-3878-32011-1770-79@ubuntu-phablet
+X-EVOLUTION-ALARM-UID:20150507T211449Z-4262-32011-1418-3@ubuntu-phablet
ACTION:DISPLAY
DESCRIPTION:Alarm
TRIGGER;VALUE=DURATION;RELATED=START:PT0S
diff --git a/tests/test-eds-tasks.cpp b/tests/test-eds-tasks.cpp
index 6dbb49f..2db1708 100644
--- a/tests/test-eds-tasks.cpp
+++ b/tests/test-eds-tasks.cpp
@@ -85,16 +85,15 @@ TEST_F(VAlarmFixture, MultipleAppointments)
// compare it to what we actually loaded...
const auto appts = planner->appointments().get();
- EXPECT_EQ(expected_alarms.size(), appts.size());
- for (size_t i=0, n=expected_alarms.size(); i<n; i++) {
- const auto& appt = appts[i];
- EXPECT_EQ(expected_appt.uid, appt.uid);
- EXPECT_EQ(expected_appt.color, appt.color);
- EXPECT_EQ(expected_appt.summary, appt.summary);
- EXPECT_EQ(1, appt.alarms.size());
- EXPECT_EQ(expected_alarms[i], appt.alarms[0]);
- }
-
+ ASSERT_GT(appts.size(), 0);
+ EXPECT_EQ(1, appts.size());
+ const auto& appt = appts[0];
+ EXPECT_EQ(expected_appt.uid, appt.uid);
+ EXPECT_EQ(expected_appt.color, appt.color);
+ EXPECT_EQ(expected_appt.summary, appt.summary);
+ EXPECT_EQ(expected_alarms.size(), appt.alarms.size());
+ for (size_t i=0, n=expected_alarms.size(); i<n; i++)
+ EXPECT_EQ(expected_alarms[i], appt.alarms[i]);
// cleanup
g_time_zone_unref(gtz);