Commit c0501e39 authored by Laurent Montel's avatar Laurent Montel 😁

Add more test

parent 9259ce4f
......@@ -9,3 +9,4 @@ macro(add_messageviewer_widget_unittest _source)
endmacro ()
add_messageviewer_widget_unittest(mailtrackingwarningwidgettest.cpp)
add_messageviewer_widget_unittest(mailtrackingdetailsdialogtest.cpp)
/*
Copyright (C) 2017 Laurent Montel <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 "mailtrackingdetailsdialogtest.h"
#include "widgets/mailtrackingdetailsdialog.h"
#include <QTest>
#include <QStandardPaths>
QTEST_MAIN(MailTrackingDetailsDialogTest)
MailTrackingDetailsDialogTest::MailTrackingDetailsDialogTest(QObject *parent)
: QObject(parent)
{
QStandardPaths::setTestModeEnabled(true);
}
void MailTrackingDetailsDialogTest::shouldHaveDefaultValue()
{
//TOOD
}
/*
Copyright (C) 2017 Laurent Montel <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 MAILTRACKINGDETAILSDIALOGTEST_H
#define MAILTRACKINGDETAILSDIALOGTEST_H
#include <QObject>
class MailTrackingDetailsDialogTest : public QObject
{
Q_OBJECT
public:
explicit MailTrackingDetailsDialogTest(QObject *parent = nullptr);
~MailTrackingDetailsDialogTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // MAILTRACKINGDETAILSDIALOGTEST_H
......@@ -21,6 +21,7 @@
#define MAILTRACKINGDETAILSDIALOG_H
#include <QDialog>
#include "messageviewer_private_export.h"
namespace KPIMTextEdit
{
......@@ -28,7 +29,7 @@ class RichTextEditorWidget;
}
namespace MessageViewer {
class MailTrackingDetailsDialog : public QDialog
class MESSAGEVIEWER_TESTS_EXPORT MailTrackingDetailsDialog : public QDialog
{
Q_OBJECT
public:
......
......@@ -33,7 +33,6 @@ MailTrackingWarningWidget::MailTrackingWarningWidget(QWidget *parent)
setText(i18n("Some Mail Tracker was found and was blocked.<a href=\"mailtrackingdetails\">(Details...)"));
connect(this, &MailTrackingWarningWidget::linkActivated, this,
&MailTrackingWarningWidget::slotShowDetails);
}
MailTrackingWarningWidget::~MailTrackingWarningWidget()
......
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