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
81771f94
Commit
81771f94
authored
Mar 04, 2022
by
Laurent Montel
😁
Browse files
improve autotest
parent
f5942640
Pipeline
#145206
passed with stages
in 5 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/plaintexteditor/autotests/plaintexteditfindbartest.cpp
View file @
81771f94
...
...
@@ -136,6 +136,7 @@ void PlainTextEditFindBarTest::shouldReplaceAllText()
QPlainTextEdit
edit
;
edit
.
setPlainText
(
text
);
PlainTextEditFindBarExample
w
(
&
edit
);
QCOMPARE
(
KPIMTextEdit
::
FindUtils
::
replaceAll
(
&
edit
,
searchText
,
replaceText
,
flags
),
nbElement
);
const
int
nbElementResult
=
KPIMTextEdit
::
FindUtils
::
replaceAll
(
&
edit
,
searchText
,
replaceText
,
flags
);
QCOMPARE
(
edit
.
toPlainText
(),
resultStr
);
QCOMPARE
(
nbElementResult
,
nbElement
);
}
src/texteditor/richtexteditor/autotests/richtexteditfindbartest.cpp
View file @
81771f94
...
...
@@ -136,6 +136,7 @@ void RichTextEditFindBarTest::shouldReplaceAllText()
QTextEdit
edit
;
edit
.
setPlainText
(
text
);
RichTextEditFindBarExample
w
(
&
edit
);
QCOMPARE
(
KPIMTextEdit
::
FindUtils
::
replaceAll
(
&
edit
,
searchText
,
replaceText
,
flags
),
nbElement
);
const
int
nbElementResult
=
KPIMTextEdit
::
FindUtils
::
replaceAll
(
&
edit
,
searchText
,
replaceText
,
flags
);
QCOMPARE
(
edit
.
toPlainText
(),
resultStr
);
QCOMPARE
(
nbElementResult
,
nbElement
);
}
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