diff options
Diffstat (limited to 'framework/domain/mimetreeparser/tests/interfacetest.cpp')
-rw-r--r-- | framework/domain/mimetreeparser/tests/interfacetest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/domain/mimetreeparser/tests/interfacetest.cpp b/framework/domain/mimetreeparser/tests/interfacetest.cpp index 822d530c..83de97f7 100644 --- a/framework/domain/mimetreeparser/tests/interfacetest.cpp +++ b/framework/domain/mimetreeparser/tests/interfacetest.cpp | |||
@@ -52,7 +52,7 @@ private slots: | |||
52 | QCOMPARE(contentPartList.size(), 1); | 52 | QCOMPARE(contentPartList.size(), 1); |
53 | auto contentPart = contentPartList[0]; | 53 | auto contentPart = contentPartList[0]; |
54 | QVERIFY((bool)contentPart); | 54 | QVERIFY((bool)contentPart); |
55 | QCOMPARE(contentPart->availableContents(), "plaintext"); | 55 | QCOMPARE(contentPart->availableContents(), QVector<QByteArray>() << "plaintext"); |
56 | auto contentList = contentPart->content("plaintext"); | 56 | auto contentList = contentPart->content("plaintext"); |
57 | QCOMPARE(contentList.size(), 1); | 57 | QCOMPARE(contentList.size(), 1); |
58 | QCOMPARE(contentList[0]->content(), QStringLiteral("If you can see this text it means that your email client couldn't display our newsletter properly.\nPlease visit this link to view the newsletter on our website: http://www.gog.com/newsletter/").toLocal8Bit()); | 58 | QCOMPARE(contentList[0]->content(), QStringLiteral("If you can see this text it means that your email client couldn't display our newsletter properly.\nPlease visit this link to view the newsletter on our website: http://www.gog.com/newsletter/").toLocal8Bit()); |
@@ -94,7 +94,7 @@ private slots: | |||
94 | QCOMPARE(contentPartList.size(), 1); | 94 | QCOMPARE(contentPartList.size(), 1); |
95 | auto contentPart = contentPartList[0]; | 95 | auto contentPart = contentPartList[0]; |
96 | QVERIFY((bool)contentPart); | 96 | QVERIFY((bool)contentPart); |
97 | QCOMPARE(contentPart->availableContents(), "html"); | 97 | QCOMPARE(contentPart->availableContents(), QVector<QByteArray>() << "html"); |
98 | 98 | ||
99 | auto contentList = contentPart->content("plaintext"); | 99 | auto contentList = contentPart->content("plaintext"); |
100 | QCOMPARE(contentList.size(), 0); | 100 | QCOMPARE(contentList.size(), 0); |
@@ -115,7 +115,7 @@ private slots: | |||
115 | QCOMPARE(contentPartList.size(), 1); | 115 | QCOMPARE(contentPartList.size(), 1); |
116 | auto contentPart = contentPartList[0]; | 116 | auto contentPart = contentPartList[0]; |
117 | QVERIFY((bool)contentPart); | 117 | QVERIFY((bool)contentPart); |
118 | QCOMPARE(contentPart->availableContents(), "plaintext"); | 118 | QCOMPARE(contentPart->availableContents(), QVector<QByteArray>() << "plaintext"); |
119 | auto contentList = contentPart->content("plaintext"); | 119 | auto contentList = contentPart->content("plaintext"); |
120 | QCOMPARE(contentList.size(), 1); | 120 | QCOMPARE(contentList.size(), 1); |
121 | QCOMPARE(contentList[0]->content(), QStringLiteral("The quick brown fox jumped over the lazy dog.").toLocal8Bit()); | 121 | QCOMPARE(contentList[0]->content(), QStringLiteral("The quick brown fox jumped over the lazy dog.").toLocal8Bit()); |
@@ -130,7 +130,7 @@ private slots: | |||
130 | QCOMPARE(contentPartList.size(), 1); | 130 | QCOMPARE(contentPartList.size(), 1); |
131 | auto contentPart = contentPartList[0]; | 131 | auto contentPart = contentPartList[0]; |
132 | QVERIFY((bool)contentPart); | 132 | QVERIFY((bool)contentPart); |
133 | QCOMPARE(contentPart->availableContents(), "plaintext"); | 133 | QCOMPARE(contentPart->availableContents(), QVector<QByteArray>() << "plaintext"); |
134 | auto contentList = contentPart->content("plaintext"); | 134 | auto contentList = contentPart->content("plaintext"); |
135 | QCOMPARE(contentList.size(), 1); | 135 | QCOMPARE(contentList.size(), 1); |
136 | QCOMPARE(contentList[0]->content(), QStringLiteral("test text").toLocal8Bit()); | 136 | QCOMPARE(contentList[0]->content(), QStringLiteral("test text").toLocal8Bit()); |
@@ -145,7 +145,7 @@ private slots: | |||
145 | QCOMPARE(contentPartList.size(), 1); | 145 | QCOMPARE(contentPartList.size(), 1); |
146 | auto contentPart = contentPartList[0]; | 146 | auto contentPart = contentPartList[0]; |
147 | QVERIFY((bool)contentPart); | 147 | QVERIFY((bool)contentPart); |
148 | QCOMPARE(contentPart->availableContents(), "plaintext"); | 148 | QCOMPARE(contentPart->availableContents(), QVector<QByteArray>() << "plaintext"); |
149 | auto contentList = contentPart->content("plaintext"); | 149 | auto contentList = contentPart->content("plaintext"); |
150 | QCOMPARE(contentList.size(), 1); | 150 | QCOMPARE(contentList.size(), 1); |
151 | QCOMPARE(contentList[0]->content(), QStringLiteral("asdasd asd asd asdf sadf sdaf sadf äöü").toLocal8Bit()); | 151 | QCOMPARE(contentList[0]->content(), QStringLiteral("asdasd asd asd asdf sadf sdaf sadf äöü").toLocal8Bit()); |