aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:25:31 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:25:31 +0000
commitcdd755ac5aaa682f199e01f45c77181b1ed0d321 (patch)
tree6bbf9bc9e539732595cf71759ce52e6b0ed93d48 /tests/tests.cpp
parent9494a8cda4eb273572c3d2074b4a084edfe6b33b (diff)
downloadqxmpp-cdd755ac5aaa682f199e01f45c77181b1ed0d321.tar.gz
check that message body is correctly unescaped
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index f870cb85..8b27cbd9 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -319,7 +319,7 @@ void TestPackets::testMessageFull()
const QByteArray xml(
"<message to=\"foo@example.com/QXmpp\" from=\"bar@example.com/QXmpp\" type=\"normal\">"
"<subject>test subject</subject>"
- "<body>test body</body>"
+ "<body>test body &amp; stuff</body>"
"<thread>test thread</thread>"
"<composing xmlns=\"http://jabber.org/protocol/chatstates\"/>"
"</message>");
@@ -329,7 +329,7 @@ void TestPackets::testMessageFull()
QCOMPARE(message.to(), QString("foo@example.com/QXmpp"));
QCOMPARE(message.from(), QString("bar@example.com/QXmpp"));
QCOMPARE(message.type(), QXmppMessage::Normal);
- QCOMPARE(message.body(), QString("test body"));
+ QCOMPARE(message.body(), QString("test body & stuff"));
QCOMPARE(message.subject(), QString("test subject"));
QCOMPARE(message.thread(), QString("test thread"));
QCOMPARE(message.state(), QXmppMessage::Composing);