diff options
| author | 0xd34df00d <0xd34df00d@gmail.com> | 2014-03-22 22:51:04 +0400 |
|---|---|---|
| committer | 0xd34df00d <0xd34df00d@gmail.com> | 2014-03-22 22:51:04 +0400 |
| commit | cd94a1aff55c4c3edaefeae0592f3d08e584a5e0 (patch) | |
| tree | b73c38002f5f3c88a5fa79363e9a75df0ebc677e /tests | |
| parent | 23d73cbe97ecf10f8b45787447b9971a068e61c8 (diff) | |
| download | qxmpp-cd94a1aff55c4c3edaefeae0592f3d08e584a5e0.tar.gz | |
Covered QXmppVCardOrganization in tests.
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); } |
