aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-31 07:32:13 +0200
committerMontel Laurent <[email protected]>2017-05-31 07:32:13 +0200
commit4fde85633beccbfb537ccaffeac79f04b77c7a19 (patch)
tree7b8edbfc785180d16086adef11e9101dbe20ccb7
parent1ec03fa047b284b1f21fe680bbe95c05bd9cb430 (diff)
Add no broken example
-rw-r--r--autotests/contenttest.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/autotests/contenttest.cpp b/autotests/contenttest.cpp
index 605018d..d57dfa9 100644
--- a/autotests/contenttest.cpp
+++ b/autotests/contenttest.cpp
@@ -802,6 +802,20 @@ void ContentTest::testContentTypeMimetype_data()
"Committed on 30/05/2017 at 19:25.\n";
QTest::newRow("broken") << data << QByteArrayLiteral("text/plain");
+ data =
+ "From: Montel Laurent <[email protected]>\n"
+ "Content-Type: application/pdf;\n"
+ "name=\"file.pdf\"\n"
+ "MIME-Version: 1.0\n"
+ "Content-Transfer-Encoding: quoted-printable\n"
+ "Subject: [libksieve] src/ksieveui: coding style\n"
+ "Date: Tue, 30 May 2017 19:25:59 +0000\n"
+ "\n"
+ "Git commit 5410a2b3b6eef29ba32d0ac5e363fd38a56f535b by Montel Laurent.\n"
+ "Committed on 30/05/2017 at 19:25.\n";
+ QTest::newRow("not broken") << data << QByteArrayLiteral("application/pdf");
+
}