Commit 88ccb191 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix autotest

parent 1d93ab93
Pipeline #144287 passed with stages
in 2 minutes and 27 seconds
......@@ -105,7 +105,7 @@ void PlainTextEditFindBarTest::shouldReplaceAllText_data()
{
QTextDocument::FindFlags flags;
flags |= QTextDocument::FindWholeWords;
QTest::newRow("bla") << QString() << QStringLiteral("bla bla") << QStringLiteral("replace") << flags << 2;
QTest::newRow("bla") << QStringLiteral("bla bla") << QStringLiteral("bla") << QStringLiteral("replace") << flags << 2;
}
}
......@@ -118,8 +118,8 @@ void PlainTextEditFindBarTest::shouldReplaceAllText()
QFETCH(int, nbElement);
QPlainTextEdit edit;
PlainTextEditFindBarExample w(&edit);
edit.setPlainText(text);
PlainTextEditFindBarExample w(&edit);
QCOMPARE(KPIMTextEdit::FindUtils::replaceAll(&edit, searchText, replaceText, flags), nbElement);
}
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