aboutsummaryrefslogtreecommitdiff
path: root/tests/presence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/presence.cpp')
-rw-r--r--tests/presence.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/presence.cpp b/tests/presence.cpp
index e134b30b..a9235d66 100644
--- a/tests/presence.cpp
+++ b/tests/presence.cpp
@@ -76,11 +76,16 @@ void tst_QXmppPresence::testPresence()
QXmppPresence presence;
parsePacket(presence, xml);
QCOMPARE(int(presence.type()), type);
- QCOMPARE(presence.status().priority(), priority);
+ QCOMPARE(presence.priority(), priority);
QCOMPARE(int(presence.status().type()), statusType);
- QCOMPARE(presence.status().statusText(), statusText);
+ QCOMPARE(presence.statusText(), statusText);
QCOMPARE(int(presence.vCardUpdateType()), vcardUpdate);
QCOMPARE(presence.photoHash(), photoHash);
+
+ // legacy
+ QCOMPARE(presence.status().priority(), priority);
+ QCOMPARE(presence.status().statusText(), statusText);
+
serializePacket(presence, xml);
}