Commit 6328d483 authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest for email as "foo, s" <foo@kde.org>

parent afd0a5d2
......@@ -47,6 +47,8 @@ void AddresseeLineEditUtilTest::shouldAdaptPasteMails_data()
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");
QTest::newRow("multimail-5") << QStringLiteral("foo (at) kde.org,\r\n bla (at) kde.org,blo (at) kde.org") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
QTest::newRow("multimail-6") << QStringLiteral("mailto:foo@kde.org,\r\n bla@kde.org,blo@kde.org") << QStringLiteral("foo@kde.org, bla@kde.org,blo@kde.org");
QTest::newRow("multimail-7") << QStringLiteral("bla <foo@kde.org>,\r\n bli <bla@kde.org>,blo <blo@kde.org>") << QStringLiteral("bla <foo@kde.org>, bli <bla@kde.org>,blo <blo@kde.org>");
QTest::newRow("multimail-8") << QStringLiteral("\"bla, v\" <foo@kde.org>,\r\n \"bli, u\" <bla@kde.org>,\"blo, k\" <blo@kde.org>") << QStringLiteral("\"bla, v\" <foo@kde.org>, \"bli, u\" <bla@kde.org>,\"blo, k\" <blo@kde.org>");
}
void AddresseeLineEditUtilTest::shouldAdaptPasteMails()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment