summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-09-11 09:00:42 +0200
committerMontel Laurent <[email protected]>2015-09-11 09:00:42 +0200
commit4c80b5c405fae85ad8d1625db68bd6599b8ca929 (patch)
treec73b3082dd3f34974c488d5e62c19cb035fd603c
parentfdc5994571be99a649588e8f4e7b74e79f70d571 (diff)
Reactivate autotests
-rw-r--r--messageviewer/src/header/autotests/CMakeLists.txt2
-rw-r--r--messageviewer/src/header/autotests/grantleeheaderstyleplugintest.cpp8
2 files changed, 7 insertions, 3 deletions
diff --git a/messageviewer/src/header/autotests/CMakeLists.txt b/messageviewer/src/header/autotests/CMakeLists.txt
index 9ad2ed5..8d2dbb4 100644
--- a/messageviewer/src/header/autotests/CMakeLists.txt
+++ b/messageviewer/src/header/autotests/CMakeLists.txt
@@ -32,7 +32,7 @@ add_messageviewer_header_unittest( enterpriseheaderstyleplugintest.cpp "../enter
add_messageviewer_header_unittest( fancyheaderstyleplugintest.cpp "../fancyheaderstyleplugin/fancyheaderstyleplugin.cpp;../fancyheaderstyleplugin/fancyheaderstyleinterface.cpp;../headerstyleinterface.cpp" "../fancyheaderstyleplugin/messageviewer_fancyheaderstyleplugin.desktop")
-#add_messageviewer_header_unittest( grantleeheaderstyleplugintest.cpp "../grantleeheaderstyleplugin/grantleeheaderstyleplugin.cpp;../grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp;../headerstyleinterface.cpp" "../grantleeheaderstyleplugin/messageviewer_grantleeheaderstyleplugin.desktop")
+add_messageviewer_header_unittest( grantleeheaderstyleplugintest.cpp "../grantleeheaderstyleplugin/grantleeheaderstyleplugin.cpp;../grantleeheaderstyleplugin/grantleeheaderstyleinterface.cpp;../headerstyleinterface.cpp" "../grantleeheaderstyleplugin/messageviewer_grantleeheaderstyleplugin.desktop")
add_messageviewer_header_unittest( longheaderstyleplugintest.cpp "../longheaderstyleplugin/longheaderstyleplugin.cpp;../longheaderstyleplugin/longheaderstyleinterface.cpp;../headerstyleinterface.cpp" "../longheaderstyleplugin/messageviewer_longheaderstyleplugin.desktop")
diff --git a/messageviewer/src/header/autotests/grantleeheaderstyleplugintest.cpp b/messageviewer/src/header/autotests/grantleeheaderstyleplugintest.cpp
index 41c2c3f..e779732 100644
--- a/messageviewer/src/header/autotests/grantleeheaderstyleplugintest.cpp
+++ b/messageviewer/src/header/autotests/grantleeheaderstyleplugintest.cpp
@@ -21,6 +21,7 @@
#include "header/grantleeheaderstyleplugin/grantleeheaderstyleinterface.h"
#include <QTest>
#include <KActionCollection>
+#include <KActionMenu>
GrantleeHeaderStylePluginTest::GrantleeHeaderStylePluginTest(QObject *parent)
: QObject(parent)
{
@@ -42,9 +43,12 @@ void GrantleeHeaderStylePluginTest::shouldHaveDefaultValue()
void GrantleeHeaderStylePluginTest::shouldCreateInterface()
{
MessageViewer::GrantleeHeaderStylePlugin plugin;
- MessageViewer::HeaderStyleInterface *interface = plugin.createView(new KActionCollection(this));
+ KActionMenu *menu = new KActionMenu(this);
+ QActionGroup *act = new QActionGroup(this);
+
+ MessageViewer::HeaderStyleInterface *interface = plugin.createView(menu, act, new KActionCollection(this));
QVERIFY(interface);
- QVERIFY(!interface->action().isEmpty());
+ //QVERIFY(!interface->action().isEmpty());
}
QTEST_MAIN(GrantleeHeaderStylePluginTest)