Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
54d16e36
Commit
54d16e36
authored
Jan 05, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve unittest
parent
a9fde31a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
templateparser/tests/templateparsertest.cpp
templateparser/tests/templateparsertest.cpp
+6
-1
No files found.
templateparser/tests/templateparsertest.cpp
View file @
54d16e36
...
...
@@ -198,8 +198,13 @@ void TemplateParserTester::test_processWithTemplatesForContent_data()
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"%DICTIONARYLANGUAGE=
\"\"
"
<<
fileName
<<
""
<<
false
;
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"%OTIMELONG %OFULLSUBJECT"
<<
fileName
<<
"11:30:27 Plain Message Test"
<<
false
;
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"%OTIMELONG
\n
%OFULLSUBJECT"
<<
fileName
<<
"11:30:27
\n
Plain Message Test"
<<
false
;
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"%REM=
\"
sdfsfsdsdfsdf
\"
"
<<
fileName
<<
""
<<
false
;
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"%CLEAR"
<<
fileName
<<
""
<<
false
;
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
"FOO foo"
<<
fileName
<<
"FOO foo"
<<
false
;
const
QString
insertFileName
=
QString
(
dir
.
path
()
+
QLatin1Char
(
'/'
)
+
QLatin1String
(
"insert-file.txt"
));
const
QString
insertFileNameCommand
=
QString
::
fromLatin1
(
"%INSERT=
\"
%1
\"
"
).
arg
(
insertFileName
);
QString
insertFileNameCommand
=
QString
::
fromLatin1
(
"%INSERT=
\"
%1
\"
"
).
arg
(
insertFileName
);
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
insertFileNameCommand
<<
fileName
<<
"test insert file!
\n
"
<<
false
;
insertFileNameCommand
=
QString
::
fromLatin1
(
"%PUT=
\"
%1
\"
"
).
arg
(
insertFileName
);
QTest
::
newRow
(
file
.
toLatin1
()
)
<<
insertFileNameCommand
<<
fileName
<<
"test insert file!
\n
"
<<
false
;
}
...
...
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