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

Add autotest for mailwebenginescript

parent 08d2689e
......@@ -37,6 +37,7 @@ if(BUILD_TESTING)
add_subdirectory(viewer/webengine/tests)
add_subdirectory(messageviewerheaderplugins/autotests)
add_subdirectory(messagepartthemes/default/autotests)
add_subdirectory(viewer/webengine/autotests/)
endif()
add_subdirectory(pics)
add_subdirectory(kconf_update)
......
macro(add_messageviewer_webengine_unittest _source)
get_filename_component(_name ${_source} NAME_WE)
ecm_add_test(${_source}
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer KF5::Libkleo KF5::QGpgme Qt5::Test Qt5::WebKitWidgets KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::AkonadiNotes KF5::CalendarCore
)
endmacro ()
add_messageviewer_webengine_unittest(mailwebenginescripttest.cpp)
#include "mailwebenginescripttest.h"
#include <QTest>
MailWebEngineScriptTest::MailWebEngineScriptTest(QObject *parent)
: QObject(parent)
{
}
MailWebEngineScriptTest::~MailWebEngineScriptTest()
{
}
QTEST_MAIN(MailWebEngineScriptTest)
/*
Copyright (C) 2016 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 MAILWEBENGINESCRIPTTEST_H
#define MAILWEBENGINESCRIPTTEST_H
#include <QObject>
class MailWebEngineScriptTest : public QObject
{
Q_OBJECT
public:
explicit MailWebEngineScriptTest(QObject *parent = Q_NULLPTR);
~MailWebEngineScriptTest();
};
#endif // MAILWEBENGINESCRIPTTEST_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