Commit 78007d2e authored by Laurent Montel's avatar Laurent Montel 😁

Add autotests

parent 7cb419a5
......@@ -16,6 +16,7 @@
*/
#include "printwebengineviewjobtest.h"
#include "../printwebengineviewjob.h"
#include <QTest>
PrintWebEngineViewJobTest::PrintWebEngineViewJobTest(QObject *parent)
......@@ -29,4 +30,10 @@ PrintWebEngineViewJobTest::~PrintWebEngineViewJobTest()
}
void PrintWebEngineViewJobTest::shouldHaveDefaultValue()
{
WebEngineViewer::PrintWebEngineViewJob job;
QVERIFY(!job.engineView());
}
QTEST_MAIN(PrintWebEngineViewJobTest)
......@@ -26,6 +26,8 @@ class PrintWebEngineViewJobTest : public QObject
public:
explicit PrintWebEngineViewJobTest(QObject *parent = Q_NULLPTR);
~PrintWebEngineViewJobTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // PRINTWEBENGINEVIEWJOBTEST_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