From cd94a1aff55c4c3edaefeae0592f3d08e584a5e0 Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sat, 22 Mar 2014 22:51:04 +0400 Subject: Covered QXmppVCardOrganization in tests. --- tests/qxmppvcardiq/tst_qxmppvcardiq.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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() "" "" "http://code.google.com/p/qxmpp/" + "" + "QXmpp foundation" + "Main QXmpp dev unit" + "" + "Executive Director" + "Patron Saint" "" ""); @@ -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); } -- cgit v1.2.3