diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qxmppvcardiq/tst_qxmppvcardiq.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/qxmppvcardiq/tst_qxmppvcardiq.cpp b/tests/qxmppvcardiq/tst_qxmppvcardiq.cpp index 2041e2d7..1d76da8d 100644 --- a/tests/qxmppvcardiq/tst_qxmppvcardiq.cpp +++ b/tests/qxmppvcardiq/tst_qxmppvcardiq.cpp @@ -166,6 +166,12 @@ void tst_QXmppVCardIq::testVCard() "</BINVAL>" "</PHOTO>" "<URL>http://code.google.com/p/qxmpp/</URL>" + "<ORG>" + "<ORGNAME>QXmpp foundation</ORGNAME>" + "<ORGUNIT>Main QXmpp dev unit</ORGUNIT>" + "</ORG>" + "<TITLE>Executive Director</TITLE>" + "<ROLE>Patron Saint</ROLE>" "</vCard>" "</iq>"); @@ -196,6 +202,13 @@ void tst_QXmppVCardIq::testVCard() "WfgYGBiQEHGJwSAK2BBQ1f3uvpAAAAAElFTkSuQmCC")); QCOMPARE(vcard.photoType(), QLatin1String("image/png")); QCOMPARE(vcard.url(), QLatin1String("http://code.google.com/p/qxmpp/")); + + const QXmppVCardOrganization &orgInfo = vcard.organization(); + QCOMPARE(orgInfo.organization(), QLatin1String("QXmpp foundation")); + QCOMPARE(orgInfo.unit(), QLatin1String("Main QXmpp dev unit")); + QCOMPARE(orgInfo.title(), QLatin1String("Executive Director")); + QCOMPARE(orgInfo.role(), QLatin1String("Patron Saint")); + serializePacket(vcard, xml); } |
