summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-05-18 11:47:25 +0200
committerMontel Laurent <[email protected]>2015-05-18 11:47:25 +0200
commit52a1bb22e6af1d71370c1c391fb9e6c7c3d3ba3b (patch)
tree8fc58404a0553a3921956a33ccb12c1f7413a246
parente90ebb46e47bf51c7f9caf64e6c63ae4f287021a (diff)
Improve autotests
-rw-r--r--kaddressbook/gravatar/autotests/gravatarcreatedialogtest.cpp9
-rw-r--r--kaddressbook/gravatar/autotests/gravatarcreatedialogtest.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.cpp b/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.cpp
index 8412442..bfbe7c3 100644
--- a/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.cpp
+++ b/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.cpp
@@ -16,6 +16,8 @@
*/
#include "gravatarcreatedialogtest.h"
+#include "../widgets/gravatarcreatedialog.h"
+#include "../widgets/gravatarcreatewidget.h"
#include <qtest_kde.h>
GravatarCreateDialogTest::GravatarCreateDialogTest(QObject *parent)
@@ -29,4 +31,11 @@ GravatarCreateDialogTest::~GravatarCreateDialogTest()
}
+void GravatarCreateDialogTest::shouldHaveDefaultValue()
+{
+ KABGravatar::GravatarCreateDialog dlg;
+ KABGravatar::GravatarCreateWidget *w = dlg.findChild<KABGravatar::GravatarCreateWidget *>(QLatin1String("gravatarcreatewidget"));
+ QVERIFY(w);
+}
+
QTEST_KDEMAIN(GravatarCreateDialogTest, GUI)
diff --git a/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.h b/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.h
index 46db4f8..e2ef0ab 100644
--- a/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.h
+++ b/kaddressbook/gravatar/autotests/gravatarcreatedialogtest.h
@@ -26,6 +26,9 @@ class GravatarCreateDialogTest : public QObject
public:
explicit GravatarCreateDialogTest(QObject *parent = 0);
~GravatarCreateDialogTest();
+
+private Q_SLOTS:
+ void shouldHaveDefaultValue();
};
#endif // GRAVATARCREATEDIALOGTEST_H