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

Add autotests

parent 58ddd0d7
......@@ -2,22 +2,28 @@ ecm_add_test(printpreviewdialogtest.cpp ../printpreviewdialog.cpp ../printprevi
TEST_NAME printpreviewdialogtest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n KF5::WidgetsAddons Poppler::Qt5 KF5::ConfigCore
)
)
ecm_add_test(printpreviewpageviewertest.cpp ../printpreviewpageviewer.cpp
TEST_NAME printpreviewpagetest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n KF5::WidgetsAddons Poppler::Qt5 KF5::ConfigCore
)
)
ecm_add_test(printpreviewpagewidgettest.cpp ../printpreviewpagewidget.cpp ../printpreviewpageviewer.cpp
TEST_NAME printpreviewpagewidgettest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n KF5::WidgetsAddons Poppler::Qt5 KF5::ConfigCore
)
)
ecm_add_test(printwebengineviewjobtest.cpp ../printwebengineviewjob.cpp
TEST_NAME printwebengineviewjobtest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::WebEngineWidgets
)
)
ecm_add_test(printconfiguredialogtest.cpp ../printconfiguredialog.cpp
TEST_NAME printconfiguredialogtest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n
)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "printconfiguredialogtest.h"
#include <QTest>
PrintConfigureDialogTest::PrintConfigureDialogTest(QObject *parent)
: QObject(parent)
{
}
PrintConfigureDialogTest::~PrintConfigureDialogTest()
{
}
QTEST_MAIN(PrintConfigureDialogTest)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef PRINTCONFIGUREDIALOGTEST_H
#define PRINTCONFIGUREDIALOGTEST_H
#include <QObject>
class PrintConfigureDialogTest : public QObject
{
Q_OBJECT
public:
explicit PrintConfigureDialogTest(QObject *parent = Q_NULLPTR);
~PrintConfigureDialogTest();
};
#endif // PRINTCONFIGUREDIALOGTEST_H
......@@ -16,6 +16,8 @@
*/
#include "printconfiguredialog.h"
#include <QDialogButtonBox>
#include <KLocalizedString>
using namespace WebEngineViewer;
......
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