From 947ad50e7c62a8d65544d64bb7a85303522dfd80 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 10 Oct 2020 21:41:13 +0200 Subject: tests: Adapt to Qt6's stricter XML parsing --- .../qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp | 80 +++++++++++----------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'tests/qxmppcarbonmanager') diff --git a/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp b/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp index 684c7470..1e8a4d76 100644 --- a/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp +++ b/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp @@ -86,15 +86,15 @@ void tst_QXmppCarbonManager::testHandleStanza_data() QTest::newRow("received1") << QByteArray("" + " from='romeo@montague.example'" + " to='romeo@montague.example/home'" + " type='chat'>" "" "" "" + " from='juliet@capulet.example/balcony'" + " to='romeo@montague.example/garden'" + " type='chat'>" "What man art thou that, thus bescreen'd in night, so stumblest on my counsel?" "0e3141cd80894871a68e6fe6b1ec56fa" "" @@ -103,24 +103,24 @@ void tst_QXmppCarbonManager::testHandleStanza_data() "") << true << false << QByteArray("" + " from='juliet@capulet.example/balcony'" + " to='romeo@montague.example/garden'" + " type='chat'>" "What man art thou that, thus bescreen'd in night, so stumblest on my counsel?" "0e3141cd80894871a68e6fe6b1ec56fa" ""); QTest::newRow("sent1") << QByteArray("" + " from='romeo@montague.example'" + " to='romeo@montague.example/garden'" + " type='chat'>" "" "" "" + " to='juliet@capulet.example/balcony'" + " from='romeo@montague.example/home'" + " type='chat'>" "Neither, fair saint, if either thee dislike." "0e3141cd80894871a68e6fe6b1ec56fa" "" @@ -129,24 +129,24 @@ void tst_QXmppCarbonManager::testHandleStanza_data() "") << true << true << QByteArray("" + " to='juliet@capulet.example/balcony'" + " from='romeo@montague.example/home'" + " type='chat'>" "Neither, fair saint, if either thee dislike." "0e3141cd80894871a68e6fe6b1ec56fa" ""); QTest::newRow("received-wrong-from") << QByteArray("" + " from='not-romeo@montague.example'" + " to='romeo@montague.example/home'" + " type='chat'>" "" "" "" + " from='juliet@capulet.example/balcony'" + " to='romeo@montague.example/garden'" + " type='chat'>" "What man art thou that, thus bescreen'd in night, so stumblest on my counsel?" "0e3141cd80894871a68e6fe6b1ec56fa" "" @@ -155,24 +155,24 @@ void tst_QXmppCarbonManager::testHandleStanza_data() "") << false << false << QByteArray("" + " from='juliet@capulet.example/balcony'" + " to='romeo@montague.example/garden'" + " type='chat'>" "What man art thou that, thus bescreen'd in night, so stumblest on my counsel?" "0e3141cd80894871a68e6fe6b1ec56fa" ""); QTest::newRow("sent-wrong-from") << QByteArray("" + " from='not-romeo@montague.example'" + " to='romeo@montague.example/garden'" + " type='chat'>" "" "" "" + " to='juliet@capulet.example/balcony'" + " from='romeo@montague.example/home'" + " type='chat'>" "Neither, fair saint, if either thee dislike." "0e3141cd80894871a68e6fe6b1ec56fa" "" @@ -181,9 +181,9 @@ void tst_QXmppCarbonManager::testHandleStanza_data() "") << false << true << QByteArray("" + " to='juliet@capulet.example/balcony'" + " from='romeo@montague.example/home'" + " type='chat'>" "Neither, fair saint, if either thee dislike." "0e3141cd80894871a68e6fe6b1ec56fa" ""); @@ -194,10 +194,10 @@ void tst_QXmppCarbonManager::testHandleStanza_data() "" "" "" + " id='0202197'" + " to='romeo@montague.lit'" + " type='chat'" + " xmlns='jabber:client'>" "Yet I should kill thee with much cherishing." "" "" -- cgit v1.2.3