From e5e4ffa0e844c4f1cbe40eeaa309c4711c1073e6 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 28 Feb 2010 17:05:37 +0100 Subject: 10 (of 12) tests working and ready to be "expanded".. --- src/tests/mainwindow_test.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/tests/mainwindow_test.cpp') 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 -#include #include -#include +#include +#include #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" -- cgit v1.2.1