From 02929ceb4d2c07606ed4fa81db66733d2ad8c872 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 3 Aug 2012 14:30:46 +0200 Subject: Make it possible to have several e-mail addresses in vCards --- tests/vcard.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/vcard.cpp') diff --git a/tests/vcard.cpp b/tests/vcard.cpp index 2aa76b25..89f8b46a 100644 --- a/tests/vcard.cpp +++ b/tests/vcard.cpp @@ -84,5 +84,8 @@ void tst_QXmppVCardIq::testVCard() "UIgAAFCIBjw1HyAAAAAd0SU1FB9oIHQInNvuJovgAAAAiSURBVAjXY2TQ+s/AwMDAwPD/GiMDlP" "WfgYGBiQEHGJwSAK2BBQ1f3uvpAAAAAElFTkSuQmCC")); QCOMPARE(vcard.photoType(), QLatin1String("image/png")); + QCOMPARE(vcard.emails().size(), 1); + QCOMPARE(vcard.emails()[0].address(), QLatin1String("foo.bar@example.com")); + QCOMPARE(int(vcard.emails()[0].type()), int(QXmppVCardEmail::Internet)); serializePacket(vcard, xml); } -- cgit v1.2.3