From d6694d3db35a553c8930bba083fcc3f5ed4ff124 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Sat, 21 Jul 2012 12:57:00 +0200 Subject: add simpler accessors for QXmppPresence priority / statusText --- tests/presence.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/presence.cpp') 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); } -- cgit v1.2.3