From f464609e5411df5f9b326099890bb8217e1acda4 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 19 May 2017 07:52:16 +0200 Subject: [PATCH] Add more autotest --- .../autotests/regexpeditorlineedittest.cpp | 6 ++++++ .../autocreatescripts/autotests/regexpeditorlineedittest.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.cpp b/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.cpp index 08408f4c..67892811 100644 --- a/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.cpp +++ b/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.cpp @@ -18,6 +18,7 @@ */ #include "regexpeditorlineedittest.h" +#include "autocreatescripts/sieveconditions/widgets/regexpeditorlineedit.h" #include RegexpEditorLineEditTest::RegexpEditorLineEditTest(QObject *parent) @@ -26,4 +27,9 @@ RegexpEditorLineEditTest::RegexpEditorLineEditTest(QObject *parent) } +void RegexpEditorLineEditTest::shouldHaveDefaultValue() +{ + KSieveUi::RegexpEditorLineEdit w; +} + QTEST_MAIN(RegexpEditorLineEditTest) diff --git a/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.h b/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.h index 4d4d5949..1e2be8ed 100644 --- a/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.h +++ b/src/ksieveui/autocreatescripts/autotests/regexpeditorlineedittest.h @@ -28,6 +28,8 @@ class RegexpEditorLineEditTest : public QObject public: explicit RegexpEditorLineEditTest(QObject *parent = nullptr); ~RegexpEditorLineEditTest() = default; +private Q_SLOTS: + void shouldHaveDefaultValue(); }; #endif // REGEXPEDITORLINEEDITTEST_H -- GitLab