summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-28 09:30:36 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-28 09:30:36 (GMT)
commit2130dfbcca036e9e0d467aaca9b89ce455075661 (patch)
tree919767e3913fb3e704314fd733c230ef955971ee
parenta93e423bf8f54d21f51b1082612688d4e155b5e9 (diff)
Validate forceautocorrection with selection
-rw-r--r--messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
index a513879..e45a370 100644
--- a/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
+++ b/messagecomposer/src/composer-ng/autotests/richtextcomposerngtest.cpp
@@ -80,6 +80,8 @@ void RichTextComposerNgTest::shouldForceAutoCorrectionWithSelection_data()
QTest::newRow("noselection") << QStringLiteral("\nboo bla bli.\nfoo faa") << QStringLiteral("\nBoo bla bli.\nFoo faa") << 0 << 0;
QTest::newRow("noselection2") << QStringLiteral("\nboo bla bli.\nfoo faa") << QStringLiteral("\nBoo bla bli.\nFoo faa") << 1 << 1;
QTest::newRow("fullselection") << QStringLiteral("\nboo bla bli.\nfoo faa") << QStringLiteral("\nBoo bla bli.\nFoo faa") << 0 << 22;
+ QTest::newRow("selection1") << QStringLiteral("\nboo bla bli.\nfoo faa") << QStringLiteral("\nBoo bla bli.\nfoo faa") << 0 << 10;
+ QTest::newRow("selection1") << QStringLiteral("\nboo bla bli.\nfoo faa") << QStringLiteral("\nboo bla bli.\nfoo faa") << 5 << 10;
}
void RichTextComposerNgTest::shouldForceAutoCorrectionWithSelection()