Commit 96f10f43 authored by Laurent Montel's avatar Laurent Montel 😁

Add new autotest

parent 40e31ff3
include(ECMAddTests)
ecm_add_tests( textutilstest.cpp editorutiltest.cpp emoticonlistwidgetselectortest.cpp NAME_PREFIX "kpimtextedit-" LINK_LIBRARIES Qt5::Test Qt5::Widgets KF5::Codecs KF5PimTextEdit KF5::IconThemes KF5::TextWidgets KF5::XmlGui)
ecm_add_tests( textutilstest.cpp editorutiltest.cpp emoticonlistwidgetselectortest.cpp emoticonunicodetabtest.cpp NAME_PREFIX "kpimtextedit-" LINK_LIBRARIES Qt5::Test Qt5::Widgets KF5::Codecs KF5PimTextEdit KF5::IconThemes KF5::TextWidgets KF5::XmlGui)
ecm_add_test(slidecontainertest.cpp
TEST_NAME slidecontainertest
NAME_PREFIX kpimtextedit-widget
......
/*
Copyright (c) 2019 Montel Laurent <montel@kde.org>
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 "emoticonunicodetabtest.h"
#include "emoticon/emoticonunicodetab.h"
#include <QTest>
QTEST_MAIN(EmoticonUnicodeTabTest)
EmoticonUnicodeTabTest::EmoticonUnicodeTabTest(QObject *parent)
: QObject(parent)
{
}
void EmoticonUnicodeTabTest::shouldHaveDefaultValues()
{
KPIMTextEdit::EmoticonUnicodeTab w;
QVERIFY(w.count() > 0);
}
/*
Copyright (c) 2019 Montel Laurent <montel@kde.org>
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 EMOTICONUNICODETABTEST_H
#define EMOTICONUNICODETABTEST_H
#include <QObject>
class EmoticonUnicodeTabTest : public QObject
{
Q_OBJECT
public:
explicit EmoticonUnicodeTabTest(QObject *parent = nullptr);
~EmoticonUnicodeTabTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValues();
};
#endif // EMOTICONUNICODETABTEST_H
......@@ -29,7 +29,7 @@ class KPIMTEXTEDIT_EXPORT EmoticonUnicodeTab : public QTabWidget
{
Q_OBJECT
public:
explicit EmoticonUnicodeTab(QWidget *parent);
explicit EmoticonUnicodeTab(QWidget *parent = nullptr);
~EmoticonUnicodeTab();
Q_SIGNALS:
......
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