summaryrefslogtreecommitdiff
path: root/src/tests/webview_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/webview_test.cpp')
-rw-r--r--src/tests/webview_test.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/tests/webview_test.cpp b/src/tests/webview_test.cpp
index 82334a30..92431d96 100644
--- a/src/tests/webview_test.cpp
+++ b/src/tests/webview_test.cpp
@@ -21,12 +21,13 @@
#include <qtest_kde.h>
-#include <QtTest>
#include <QtCore>
+#include <QtGui>
+#include <QtTest>
#include <QtWebKit>
#include "webview.h"
-
+#include "webtab.h"
class WebViewTest : public QObject
{
@@ -40,6 +41,7 @@ private slots:
private:
WebView *view;
+ WebTab *tab;
};
@@ -48,6 +50,8 @@ private:
void WebViewTest::initTestCase()
{
+ tab = new WebTab;
+ view = tab->view();
}
@@ -61,5 +65,5 @@ void WebViewTest::cleanupTestCase()
// -------------------------------------------
-QTEST_MAIN(WebViewTest)
+QTEST_KDEMAIN(WebViewTest,GUI)
#include "webview_test.moc"