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

Add autotests

parent 72445bd3
......@@ -42,3 +42,9 @@ ecm_add_test(printselectpagedialogtest.cpp ../printselectpagedialog.cpp ../prin
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n Qt5::PrintSupport
)
ecm_add_test(printselectpagewidgettest.cpp ../printselectpagewidget.cpp ${print_autotest_SRCS}
TEST_NAME printselectpagewidgettest
NAME_PREFIX "webengineviewer-print-"
LINK_LIBRARIES Qt5::Test Qt5::Widgets Qt5::Gui KF5::I18n Qt5::PrintSupport
)
/*
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.
*/
#include "printselectpagewidgettest.h"
#include <QTest>
PrintSelectPageWidgetTest::PrintSelectPageWidgetTest(QObject *parent)
: QObject(parent)
{
}
PrintSelectPageWidgetTest::~PrintSelectPageWidgetTest()
{
}
QTEST_MAIN(PrintSelectPageWidgetTest)
/*
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 PRINTSELECTPAGEWIDGETTEST_H
#define PRINTSELECTPAGEWIDGETTEST_H
#include <QObject>
class PrintSelectPageWidgetTest : public QObject
{
Q_OBJECT
public:
explicit PrintSelectPageWidgetTest(QObject *parent = Q_NULLPTR);
~PrintSelectPageWidgetTest();
};
#endif // PRINTSELECTPAGEWIDGETTEST_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