aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-21 13:29:04 +0200
committerMontel Laurent <[email protected]>2017-04-21 13:29:04 +0200
commit9177071456174e98bd2f983eaa4f48202e3c4627 (patch)
tree30b658af73b75d419b3713b275c6d6ba0ef9cebf
parent5eab8e4512f82ee5381b56467950d1870e4a9e31 (diff)
Add more autotest
-rw-r--r--src/editor/generalinfoeditor/autotests/CMakeLists.txt8
-rw-r--r--src/editor/generalinfoeditor/autotests/messageformattingwidgettext.cpp32
-rw-r--r--src/editor/generalinfoeditor/autotests/messageformattingwidgettext.h35
3 files changed, 75 insertions, 0 deletions
diff --git a/src/editor/generalinfoeditor/autotests/CMakeLists.txt b/src/editor/generalinfoeditor/autotests/CMakeLists.txt
index 6b7f234..bd95dfb 100644
--- a/src/editor/generalinfoeditor/autotests/CMakeLists.txt
+++ b/src/editor/generalinfoeditor/autotests/CMakeLists.txt
@@ -25,3 +25,11 @@ add_executable(akonadicontactselecttypecomboboxtest ${akonadicontactselecttypeco
add_test(akonadicontactselecttypecomboboxtest akonadicontactselecttypecomboboxtest)
ecm_mark_as_test(akonadicontactselecttypecomboboxtest)
target_link_libraries(akonadicontactselecttypecomboboxtest Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::I18n )
+
+
+set(nicknamewidgettest_SRCS nicknamewidgettest.cpp)
+add_executable(nicknamewidgettest ${nicknamewidgettest_SRCS})
+add_test(nicknamewidgettest nicknamewidgettest)
+ecm_mark_as_test(nicknamewidgettest)
+target_link_libraries(nicknamewidgettest Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::I18n )
+
diff --git a/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.cpp b/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.cpp
new file mode 100644
index 0000000..39a10a9
--- /dev/null
+++ b/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.cpp
@@ -0,0 +1,32 @@
+/*
+ This file is part of Akonadi Contact.
+
+ Copyright (C) 2017 Laurent Montel <[email protected]>
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+ License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to the
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+*/
+
+
+#include "messageformattingwidgettext.h"
+#include <QTest>
+
+MessageFormattingWidgetText::MessageFormattingWidgetText(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+QTEST_MAIN(MessageFormattingWidgetText)
diff --git a/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.h b/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.h
new file mode 100644
index 0000000..e154df1
--- /dev/null
+++ b/src/editor/generalinfoeditor/autotests/messageformattingwidgettext.h
@@ -0,0 +1,35 @@
+/*
+ This file is part of Akonadi Contact.
+
+ Copyright (C) 2017 Laurent Montel <[email protected]>
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
+
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+ License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to the
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+*/
+
+#ifndef MESSAGEFORMATTINGWIDGETTEXT_H
+#define MESSAGEFORMATTINGWIDGETTEXT_H
+
+#include <QObject>
+
+class MessageFormattingWidgetText : public QObject
+{
+ Q_OBJECT
+public:
+ explicit MessageFormattingWidgetText(QObject *parent = nullptr);
+ ~MessageFormattingWidgetText() = default;
+};
+
+#endif // MESSAGEFORMATTINGWIDGETTEXT_H