Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
c0193473
Commit
c0193473
authored
Dec 15, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more unittest
parent
2e28bb34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
messagecomposer/tests/composertest.cpp
messagecomposer/tests/composertest.cpp
+4
-0
messagecomposer/tests/infoparttest.cpp
messagecomposer/tests/infoparttest.cpp
+11
-0
No files found.
messagecomposer/tests/composertest.cpp
View file @
c0193473
...
...
@@ -91,6 +91,8 @@ void ComposerTest::testAutoSave()
composer
->
start
();
QVERIFY
(
composer
->
finished
()
);
QCOMPARE
(
composer
->
resultMessages
().
size
(),
1
);
delete
composer
;
composer
=
0
;
}
void
ComposerTest
::
testNonAsciiHeaders
()
...
...
@@ -148,6 +150,8 @@ void ComposerTest::testBug271192()
const
KMime
::
Message
::
Ptr
message
=
composer
->
resultMessages
().
first
();
QCOMPARE
(
message
->
to
()
->
displayNames
().
size
(),
1
);
QCOMPARE
(
message
->
to
()
->
displayNames
().
first
().
toUtf8
(),
displayName
.
toUtf8
()
);
delete
composer
;
composer
=
0
;
}
void
ComposerTest
::
fillComposerData
(
Composer
*
composer
)
...
...
messagecomposer/tests/infoparttest.cpp
View file @
c0193473
...
...
@@ -34,6 +34,17 @@ void InfoPartTest::shouldHaveDefaultValue()
MessageComposer
::
InfoPart
infopart
;
QCOMPARE
(
infopart
.
transportId
(),
0
);
QVERIFY
(
!
infopart
.
urgent
());
QVERIFY
(
infopart
.
from
().
isEmpty
());
QVERIFY
(
infopart
.
to
().
isEmpty
());
QVERIFY
(
infopart
.
cc
().
isEmpty
());
QVERIFY
(
infopart
.
bcc
().
isEmpty
());
QVERIFY
(
infopart
.
replyTo
().
isEmpty
());
QVERIFY
(
infopart
.
subject
().
isEmpty
());
QVERIFY
(
infopart
.
fcc
().
isEmpty
());
QVERIFY
(
infopart
.
userAgent
().
isEmpty
());
QVERIFY
(
infopart
.
inReplyTo
().
isEmpty
());
QVERIFY
(
infopart
.
references
().
isEmpty
());
QVERIFY
(
infopart
.
extraHeaders
().
isEmpty
());
}
QTEST_KDEMAIN
(
InfoPartTest
,
NoGUI
)
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