Changeset View
Changeset View
Standalone View
Standalone View
resources/kolab/pimkolab/autotests/upgradetest.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | 141 | { | |||
---|---|---|---|---|---|
165 | QVERIFY(!v3result.isEmpty()); | 165 | QVERIFY(!v3result.isEmpty()); | ||
166 | 166 | | |||
167 | normalizeContact(v2Addressee); | 167 | normalizeContact(v2Addressee); | ||
168 | QVERIFY(normalizePhoneNumbers(v3result, v2Addressee)); // phone number ids are random | 168 | QVERIFY(normalizePhoneNumbers(v3result, v2Addressee)); // phone number ids are random | ||
169 | QVERIFY(normalizeAddresses(v3result, v2Addressee)); // same here | 169 | QVERIFY(normalizeAddresses(v3result, v2Addressee)); // same here | ||
170 | 170 | | |||
171 | KContacts::VCardConverter converter; | 171 | KContacts::VCardConverter converter; | ||
172 | if (v2Addressee != v3result) { | 172 | if (v2Addressee != v3result) { | ||
173 | showDiff(converter.createVCard(v2Addressee), converter.createVCard(v3result)); | 173 | showDiff(QString::fromUtf8(converter.createVCard(v2Addressee)), QString::fromUtf8(converter.createVCard(v3result))); | ||
174 | QVERIFY(false); | 174 | QVERIFY(false); | ||
175 | } | 175 | } | ||
176 | QCOMPARE(Kolab::ErrorHandler::instance().error(), Kolab::ErrorHandler::Debug); | 176 | QCOMPARE(Kolab::ErrorHandler::instance().error(), Kolab::ErrorHandler::Debug); | ||
177 | } | 177 | } | ||
178 | 178 | | |||
179 | QTEST_MAIN(UpgradeTest) | 179 | QTEST_MAIN(UpgradeTest) |