summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-06 04:53:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-06 04:53:51 (GMT)
commit6fece88c8a7ce0fb6ed27a67561c6837be97fff5 (patch)
tree673bfba2fd435a6a3980323a6ddde4ac8c99c598
parentc2b51f1b8d22c455c17d8bb2ae5eecaf59e6e433 (diff)
Add more autotest
-rw-r--r--src/addressline/autotests/addresseelineeditutiltest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/addressline/autotests/addresseelineeditutiltest.cpp b/src/addressline/autotests/addresseelineeditutiltest.cpp
index 3154c8d..a254d2a 100644
--- a/src/addressline/autotests/addresseelineeditutiltest.cpp
+++ b/src/addressline/autotests/addresseelineeditutiltest.cpp
@@ -41,6 +41,12 @@ void AddresseeLineEditUtilTest::shouldAdaptPasteMails_data()
QTest::newRow("onemail") << QStringLiteral("foo@kde.org") << QStringLiteral("foo@kde.org");
QTest::newRow("onemailwithat") << QStringLiteral("foo (at) kde.org") << QStringLiteral("foo@kde.org");
QTest::newRow("text") << QStringLiteral("fookde.org") << QStringLiteral("fookde.org");
+ QTest::newRow("onemailwithdot") << QStringLiteral("foo at kde dot org") << QStringLiteral("foo@kde.org");
+ QTest::newRow("mailto") << QStringLiteral("mailto:foo@kde.org") << QStringLiteral("foo@kde.org");
+ QTest::newRow("multimail") << QStringLiteral("foo@kde.org,\r\n bla@kde.org,blo@kde.org") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
+ QTest::newRow("multimail-2") << QStringLiteral("foo@kde.org,\r\n bla@kde.org,blo@kde.org, ") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
+ QTest::newRow("multimail-3") << QStringLiteral("foo@kde.org,\r\n bla@kde.org,blo@kde.org,\n") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
+ QTest::newRow("multimail-4") << QStringLiteral("foo@kde.org,\r\n bla@kde.org,blo@kde.org, \n") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
}
void AddresseeLineEditUtilTest::shouldAdaptPasteMails()