aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 03:06:52 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 03:06:52 +0000
commit179c3b8f309907d7178b16582389579d1da5d0cb (patch)
tree752e8d0eda58236fc8a0c4ae8374677af3114e53 /tests/tests.cpp
parent0be5a87d0dd2cadf1d5a84dcd3b272bf6ac6e67c (diff)
downloadqxmpp-179c3b8f309907d7178b16582389579d1da5d0cb.tar.gz
clean up and test vCard code
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);
}