diff options
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); } |
