diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2012-04-13 15:36:22 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2012-04-13 17:37:21 +0300 |
commit | 02f3c6f6d37a413b5ad394a216db43caad98e6b8 (patch) | |
tree | d3a456daaeb3ec9fcf897a2522d1a35ba523904e | |
parent | 2a9e3cc01ff743e9fa40bad32b43ded76726cea5 (diff) |
test-presence: Test the new Presence constructors
-rw-r--r-- | tests/presence.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/presence.cpp b/tests/presence.cpp index 487f7b0b..9283513d 100644 --- a/tests/presence.cpp +++ b/tests/presence.cpp @@ -47,6 +47,11 @@ void TestPresence::testPresence() pr = Presence::available(QLatin1String("I am available")); TEST_PRESENCE(pr, true, ConnectionPresenceTypeAvailable, QLatin1String("available"), QLatin1String("I am available")); + pr = Presence::chat(); + TEST_PRESENCE(pr, true, ConnectionPresenceTypeAvailable, QLatin1String("chat"), QString()); + pr = Presence::chat(QLatin1String("I am chat")); + TEST_PRESENCE(pr, true, ConnectionPresenceTypeAvailable, QLatin1String("chat"), QLatin1String("I am chat")); + pr = Presence::away(); TEST_PRESENCE(pr, true, ConnectionPresenceTypeAway, QLatin1String("away"), QString()); pr = Presence::away(QLatin1String("I am away")); @@ -62,6 +67,11 @@ void TestPresence::testPresence() pr = Presence::busy(QLatin1String("I am busy")); TEST_PRESENCE(pr, true, ConnectionPresenceTypeBusy, QLatin1String("busy"), QLatin1String("I am busy")); + pr = Presence::dnd(); + TEST_PRESENCE(pr, true, ConnectionPresenceTypeBusy, QLatin1String("dnd"), QString()); + pr = Presence::dnd(QLatin1String("I am dnd")); + TEST_PRESENCE(pr, true, ConnectionPresenceTypeBusy, QLatin1String("dnd"), QLatin1String("I am dnd")); + pr = Presence::xa(); TEST_PRESENCE(pr, true, ConnectionPresenceTypeExtendedAway, QLatin1String("xa"), QString()); pr = Presence::xa(QLatin1String("I am xa")); |