aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 41130845..e63b85e3 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -468,6 +468,11 @@ void TestPackets::testVCard()
QCOMPARE(vcard.firstName(), QLatin1String("Foo"));
QCOMPARE(vcard.middleName(), QLatin1String("Baz"));
QCOMPARE(vcard.lastName(), QLatin1String("Wiz"));
+ QCOMPARE(vcard.photo(), QByteArray::fromBase64(
+ "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAAXNSR0IArs4c6QAAAAlwSFlzAAA"
+ "UIgAAFCIBjw1HyAAAAAd0SU1FB9oIHQInNvuJovgAAAAiSURBVAjXY2TQ+s/AwMDAwPD/GiMDlP"
+ "WfgYGBiQEHGJwSAK2BBQ1f3uvpAAAAAElFTkSuQmCC"));
+ QCOMPARE(vcard.photoType(), QLatin1String("image/png"));
serializePacket(vcard, xml);
}