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
7d74d7b3
Commit
7d74d7b3
authored
Dec 11, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unittest
parent
09252bec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
messageviewer/tests/messagedisplayformatattributetest.cpp
messageviewer/tests/messagedisplayformatattributetest.cpp
+11
-0
messageviewer/tests/messagedisplayformatattributetest.h
messageviewer/tests/messagedisplayformatattributetest.h
+1
-0
No files found.
messageviewer/tests/messagedisplayformatattributetest.cpp
View file @
7d74d7b3
...
...
@@ -76,4 +76,15 @@ void MessageDisplayFormatAttributeTest::shouldDeserializeValue()
QVERIFY
(
attr
==
result
);
}
void
MessageDisplayFormatAttributeTest
::
shouldCloneAttribute
()
{
MessageViewer
::
Viewer
::
DisplayFormatMessage
format
=
MessageViewer
::
Viewer
::
Html
;
MessageViewer
::
MessageDisplayFormatAttribute
attr
;
attr
.
setMessageFormat
(
format
);
attr
.
setRemoteContent
(
true
);
MessageViewer
::
MessageDisplayFormatAttribute
*
result
=
attr
.
clone
();
QVERIFY
(
attr
==
*
result
);
delete
result
;
}
QTEST_KDEMAIN
(
MessageDisplayFormatAttributeTest
,
NoGUI
)
messageviewer/tests/messagedisplayformatattributetest.h
View file @
7d74d7b3
...
...
@@ -34,6 +34,7 @@ private Q_SLOTS:
void
shouldChangeRemoteValue
();
void
shouldChangeMessageFormat
();
void
shouldDeserializeValue
();
void
shouldCloneAttribute
();
};
#endif // MESSAGEDISPLAYFORMATATTRIBUTETEST_H
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