Commit 7d74d7b3 authored by Laurent Montel's avatar Laurent Montel 😁

Improve unittest

parent 09252bec
......@@ -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)
......@@ -34,6 +34,7 @@ private Q_SLOTS:
void shouldChangeRemoteValue();
void shouldChangeMessageFormat();
void shouldDeserializeValue();
void shouldCloneAttribute();
};
#endif // MESSAGEDISPLAYFORMATATTRIBUTETEST_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment