diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-08-03 14:30:46 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-08-03 14:30:46 +0200 |
| commit | 02929ceb4d2c07606ed4fa81db66733d2ad8c872 (patch) | |
| tree | a94e86492da1973b6c3dbe9696872c0aba9a8012 /tests/vcard.cpp | |
| parent | 34a30caf544899975b489e7e037fca9afb504267 (diff) | |
| download | qxmpp-02929ceb4d2c07606ed4fa81db66733d2ad8c872.tar.gz | |
Make it possible to have several e-mail addresses in vCards
Diffstat (limited to 'tests/vcard.cpp')
| -rw-r--r-- | tests/vcard.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |
