Changeset View
Changeset View
Standalone View
Standalone View
autotests/testicalformat.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 37 | { | |||
---|---|---|---|---|---|
90 | 90 | | |||
91 | Event::Ptr loadedEvent = calendar2->incidences().at(0).staticCast<Event>(); | 91 | Event::Ptr loadedEvent = calendar2->incidences().at(0).staticCast<Event>(); | ||
92 | QVERIFY(loadedEvent->summary().toUtf8() | 92 | QVERIFY(loadedEvent->summary().toUtf8() | ||
93 | == QByteArray(QString(utf_umlaut).toLatin1().constData())); | 93 | == QByteArray(QString(utf_umlaut).toLatin1().constData())); | ||
94 | QVERIFY(*loadedEvent == *event); | 94 | QVERIFY(*loadedEvent == *event); | ||
95 | 95 | | |||
96 | // Test fromRawString() | 96 | // Test fromRawString() | ||
97 | MemoryCalendar::Ptr calendar3(new MemoryCalendar(QTimeZone::utc())); | 97 | MemoryCalendar::Ptr calendar3(new MemoryCalendar(QTimeZone::utc())); | ||
98 | format.fromRawString(calendar3, bytesFromFile); | 98 | QVERIFY(format.fromRawString(calendar3, bytesFromFile)); | ||
99 | QVERIFY(calendar3->incidences().count() == 1); | 99 | QVERIFY(calendar3->incidences().count() == 1); | ||
100 | QVERIFY(*calendar3->incidences().at(0) == *event); | 100 | QVERIFY(*calendar3->incidences().at(0) == *event); | ||
101 | 101 | | |||
102 | QFile::remove(QStringLiteral("hommer.ics")); | 102 | QFile::remove(QStringLiteral("hommer.ics")); | ||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | void ICalFormatTest::testVolatileProperties() | 105 | void ICalFormatTest::testVolatileProperties() | ||
106 | { | 106 | { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |