Commit ee46041b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotest

parent f48c6cb2
......@@ -454,6 +454,22 @@ void RichTextComposerNgTest::shouldLoadSignatureFromCommand_data()
QTest::newRow("command1") << QStringLiteral("echo \"foo\"") << QStringLiteral("\n")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
QTest::newRow("command2") << QStringLiteral("echo \"foo\"") << QStringLiteral("foo ddd \n")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
QTest::newRow("command3") << QStringLiteral("echo \"foo\"") << QString()
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
QTest::newRow("command4") << QStringLiteral("echo \"foo\nsss\"") << QString()
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
QTest::newRow("command5") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
<< KIdentityManagement::Signature::End << KIdentityManagement::Signature::AddSeparator;
//Start
QTest::newRow("command6") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
<< KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddSeparator;
//Failed
//QTest::newRow("command7") << QStringLiteral("echo \"foo\nsss\n\"") << QStringLiteral("foo ddd \n")
// << KIdentityManagement::Signature::Start << KIdentityManagement::Signature::AddNewLines;
}
void RichTextComposerNgTest::shouldLoadSignatureFromCommand()
......
Supports Markdown
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