Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
ac29a776
Commit
ac29a776
authored
Mar 03, 2022
by
Laurent Montel
😁
Browse files
Continue to implement autotest
parent
0fcb086c
Pipeline
#144318
passed with stages
in 2 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/plaintexteditor/autotests/plaintexteditfindbartest.cpp
View file @
ac29a776
...
...
@@ -105,7 +105,20 @@ void PlainTextEditFindBarTest::shouldReplaceAllText_data()
{
KPIMTextEdit
::
TextEditFindBarBase
::
FindFlags
flags
;
flags
|=
KPIMTextEdit
::
TextEditFindBarBase
::
FindWholeWords
;
QTest
::
newRow
(
"bla"
)
<<
QStringLiteral
(
"bla bla"
)
<<
QStringLiteral
(
"bla"
)
<<
QStringLiteral
(
"replace"
)
<<
flags
<<
2
;
QTest
::
newRow
(
"wholewords"
)
<<
QStringLiteral
(
"bla bla"
)
<<
QStringLiteral
(
"bla"
)
<<
QStringLiteral
(
"replace"
)
<<
flags
<<
2
;
}
{
KPIMTextEdit
::
TextEditFindBarBase
::
FindFlags
flags
;
flags
|=
KPIMTextEdit
::
TextEditFindBarBase
::
FindWholeWords
;
flags
|=
KPIMTextEdit
::
TextEditFindBarBase
::
FindRespectDiacritics
;
QTest
::
newRow
(
"wholewords-diacritics"
)
<<
QStringLiteral
(
"réunion reunion réunion"
)
<<
QStringLiteral
(
"réunion"
)
<<
QStringLiteral
(
"replace"
)
<<
flags
<<
2
;
}
{
KPIMTextEdit
::
TextEditFindBarBase
::
FindFlags
flags
;
flags
|=
KPIMTextEdit
::
TextEditFindBarBase
::
FindWholeWords
;
QTest
::
newRow
(
"wholewords-no-diacritics"
)
<<
QStringLiteral
(
"réunion reunion réunion"
)
<<
QStringLiteral
(
"réunion"
)
<<
QStringLiteral
(
"replace"
)
<<
flags
<<
3
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment