Commit 43d7bec6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest

parent f1c07e59
......@@ -21,6 +21,7 @@
*/
#include "messageviewerrenderertest.h"
#include "viewer/renderer/messageviewerrenderer.h"
#include <QTest>
QTEST_MAIN(MessageViewerRendererTest)
......@@ -29,3 +30,10 @@ MessageViewerRendererTest::MessageViewerRendererTest(QObject *parent)
{
}
void MessageViewerRendererTest::shouldHaveDefaultValue()
{
MessageViewer::MessageViewerRenderer w;
QVERIFY(!w.currentWidget());
QVERIFY(!w.cssHelper());
}
......@@ -31,6 +31,8 @@ class MessageViewerRendererTest : public QObject
public:
explicit MessageViewerRendererTest(QObject *parent = nullptr);
~MessageViewerRendererTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // MESSAGEVIEWERRENDERERTEST_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