summaryrefslogtreecommitdiff
path: root/src/tests/mainwindow_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/mainwindow_test.cpp')
-rw-r--r--src/tests/mainwindow_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tests/mainwindow_test.cpp b/src/tests/mainwindow_test.cpp
index f5342dfa..90ae26bd 100644
--- a/src/tests/mainwindow_test.cpp
+++ b/src/tests/mainwindow_test.cpp
@@ -21,11 +21,12 @@
#include <qtest_kde.h>
-#include <QtTest>
#include <QtCore>
-#include <QtWebKit>
+#include <QtGui>
+#include <QtTest>
#include "mainwindow.h"
+#include "application.h"
class MainWindowTest : public QObject
@@ -49,14 +50,16 @@ private:
void MainWindowTest::initTestCase()
{
+ window = new MainWindow;
}
void MainWindowTest::cleanupTestCase()
{
+ delete window;
}
// -------------------------------------------
-QTEST_MAIN(MainWindowTest)
+QTEST_KDEMAIN(MainWindowTest,GUI)
#include "mainwindow_test.moc"