summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-03-05 07:12:02 +0100
committerLaurent Montel <[email protected]>2018-03-05 07:12:02 +0100
commitf04135e59e251e4f8eb977fa5b51d27da4eb41d7 (patch)
tree120d4d2b6f898e80b47f94183f703a05e679d290
parentf249045f242ddfa744803dfd427bb4660065a256 (diff)
Continue to implement autotest
-rw-r--r--kmail/editorconvertertextplugins/markdown/autotests/CMakeLists.txt6
-rw-r--r--kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp6
-rw-r--r--kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/kmail/editorconvertertextplugins/markdown/autotests/CMakeLists.txt b/kmail/editorconvertertextplugins/markdown/autotests/CMakeLists.txt
index a66d489..f496ef0 100644
--- a/kmail/editorconvertertextplugins/markdown/autotests/CMakeLists.txt
+++ b/kmail/editorconvertertextplugins/markdown/autotests/CMakeLists.txt
@@ -8,6 +8,6 @@ macro(add_kmail_converttext_unittest _source _additional)
target_link_libraries( ${_name} Qt5::Test KF5::XmlGui KF5::IconThemes KF5::MessageComposer KF5::I18n Qt5::WebEngineWidgets)
endmacro ()
-add_kmail_converttext_unittest(markdowninterfacetest.cpp "")
-add_kmail_converttext_unittest(markdownpreviewwidgettest.cpp "")
-add_kmail_converttext_unittest(markdownplugintest.cpp "")
+add_kmail_converttext_unittest(markdowninterfacetest.cpp "../markdowninterface.cpp")
+add_kmail_converttext_unittest(markdownpreviewwidgettest.cpp "../markdownpreviewwidget.cpp")
+add_kmail_converttext_unittest(markdownplugintest.cpp "../markdownplugin.cpp;../markdowninterface.cpp")
diff --git a/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp b/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp
index 29f8067..19babd3 100644
--- a/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp
+++ b/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.cpp
@@ -18,6 +18,7 @@
*/
#include "markdownpreviewwidgettest.h"
+#include "markdownpreviewwidget.h"
#include <QTest>
QTEST_MAIN(MarkdownPreviewWidgetTest)
@@ -26,3 +27,8 @@ MarkdownPreviewWidgetTest::MarkdownPreviewWidgetTest(QObject *parent)
{
}
+
+void MarkdownPreviewWidgetTest::shouldHaveDefaultValue()
+{
+
+}
diff --git a/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.h b/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.h
index 1b42df8..238e9b7 100644
--- a/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.h
+++ b/kmail/editorconvertertextplugins/markdown/autotests/markdownpreviewwidgettest.h
@@ -28,6 +28,8 @@ class MarkdownPreviewWidgetTest : public QObject
public:
explicit MarkdownPreviewWidgetTest(QObject *parent = nullptr);
~MarkdownPreviewWidgetTest() = default;
+private Q_SLOTS:
+ void shouldHaveDefaultValue();
};
#endif // MARKDOWNPREVIEWWIDGETTEST_H