Conflicts: grantleeeditor/grantleethemeeditor/managethemes.cpp kmail/editor/potentialphishingemail/potentialphishingemailwarning.cpp libkdepim/ldap/addhostdialog.cpp libkdepim/ldap/addhostdialog_p.h messageviewer/viewer/viewer_p.cpp pimcommon/acl/aclmanager.cpp pimcommon/acl/autotests/CMakeLists.txt pimcommon/acl/collectionaclpage.cpp pimcommon/acl/collectionaclpage.h pimcommon/translator/googletranslator.cpp pimcommon/translator/translatorutil.cpp pimcommon/translator/translatorutil.h pimcommon/util/vcardutil.cppwilder-work
commit
fca382a478
4 changed files with 87 additions and 0 deletions
@ -0,0 +1,46 @@ |
||||
/*
|
||||
Copyright (c) 2015 Montel Laurent <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 "potentialphishingemailwarningtest.h" |
||||
#include "../potentialphishingemailwarning.h" |
||||
#include <QAction> |
||||
#include <qtest.h> |
||||
|
||||
PotentialPhishingEmailWarningTest::PotentialPhishingEmailWarningTest(QObject *parent) |
||||
: QObject(parent) |
||||
{ |
||||
|
||||
} |
||||
|
||||
PotentialPhishingEmailWarningTest::~PotentialPhishingEmailWarningTest() |
||||
{ |
||||
|
||||
} |
||||
|
||||
void PotentialPhishingEmailWarningTest::shouldHaveDefaultValue() |
||||
{ |
||||
PotentialPhishingEmailWarning w; |
||||
QVERIFY(!w.isVisible()); |
||||
//Verify QVERIFY(w.isCloseButtonVisible());
|
||||
QAction *act = qFindChild<QAction *>(&w, QLatin1String("sendnow")); |
||||
QVERIFY(act); |
||||
} |
||||
|
||||
QTEST_MAIN(PotentialPhishingEmailWarningTest) |
||||
@ -0,0 +1,36 @@ |
||||
/*
|
||||
Copyright (c) 2015 Montel Laurent <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 POTENTIALPHISHINGEMAILWARNINGTEST_H |
||||
#define POTENTIALPHISHINGEMAILWARNINGTEST_H |
||||
|
||||
#include <QObject> |
||||
|
||||
class PotentialPhishingEmailWarningTest : public QObject |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
explicit PotentialPhishingEmailWarningTest(QObject *parent = 0); |
||||
~PotentialPhishingEmailWarningTest(); |
||||
private Q_SLOTS: |
||||
void shouldHaveDefaultValue(); |
||||
}; |
||||
|
||||
#endif // POTENTIALPHISHINGEMAILWARNINGTEST_H
|
||||
Loading…
Reference in new issue