Commit 59e166c3 authored by Volker Krause's avatar Volker Krause
Browse files

Verify ical loading

Should help narrowing down a Windows unit test failure in here.
parent 1826a609
Pipeline #200539 passed with stage
in 5 minutes and 5 seconds
......@@ -71,7 +71,7 @@ private Q_SLOTS:
MemoryCalendar::Ptr refCal(new MemoryCalendar(QTimeZone::systemTimeZone()));
ICalFormat format;
format.load(refCal, icalFile);
QVERIFY(format.load(refCal, icalFile));
const auto refEvents = refCal->rawEvents(KCalendarCore::EventSortStartDate, KCalendarCore::SortDirectionAscending);
QCOMPARE(refEvents.size(), 1);
......@@ -141,7 +141,7 @@ private Q_SLOTS:
MemoryCalendar::Ptr refCal(new MemoryCalendar(QTimeZone::systemTimeZone()));
ICalFormat format;
format.load(refCal, icalFile);
QVERIFY(format.load(refCal, icalFile));
const auto events = CalendarHandler::findEvents(refCal, postproc.result().at(0));
QCOMPARE(events.size(), 1);
......@@ -158,7 +158,7 @@ private Q_SLOTS:
MemoryCalendar::Ptr refCal(new MemoryCalendar(QTimeZone::systemTimeZone()));
ICalFormat format;
format.load(refCal, QStringLiteral(SOURCE_DIR "/calendarhandlerdata/to-be-cancelled.ics"));
QVERIFY(format.load(refCal, QStringLiteral(SOURCE_DIR "/calendarhandlerdata/to-be-cancelled.ics")));
const auto events = CalendarHandler::findEvents(refCal, cancel);
QCOMPARE(events.size(), 2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment