diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-28 17:05:37 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-28 17:05:37 +0100 |
commit | e5e4ffa0e844c4f1cbe40eeaa309c4711c1073e6 (patch) | |
tree | ddfa948cc8a66e60726afd0b226ceb1a98af68f3 /src/tests/mainview_test.cpp | |
parent | Changing Findbar parent (diff) | |
download | rekonq-e5e4ffa0e844c4f1cbe40eeaa309c4711c1073e6.tar.xz |
10 (of 12) tests working and ready to be "expanded"..
Diffstat (limited to 'src/tests/mainview_test.cpp')
-rw-r--r-- | src/tests/mainview_test.cpp | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/tests/mainview_test.cpp b/src/tests/mainview_test.cpp index 41ded862..30d4e7dd 100644 --- a/src/tests/mainview_test.cpp +++ b/src/tests/mainview_test.cpp @@ -27,27 +27,14 @@ #include <qtest_kde.h> -#include <QtTest> #include <QtCore> #include <QtGui> +#include <QtTest> #include "mainview.h" #include "webview.h" -// Subclass that exposes the protected functions. -class SubMainView : public MainView -{ -public: - SubMainView(MainWindow *parent) : MainView(parent) {}; - - void call_resizeEvent(QResizeEvent *event) - { return SubMainView::resizeEvent(event); } -}; - -// ----------------------------------------------------------- - - class MainViewTest : public QObject { Q_OBJECT @@ -88,8 +75,8 @@ private slots: void currentChanged(); private: - MainWindow *mainWindow; - SubMainView *mainView; + MainWindow *window; + MainView *view; }; @@ -100,16 +87,15 @@ private: // It is only called once. void MainViewTest::initTestCase() { -// mainWindow = new MainWindow; -// mainView = new SubMainView(mainWindow); + window = new MainWindow; + view = window->mainView(); } // This will be called after the last test function is executed. // It is only called once. void MainViewTest::cleanupTestCase() { -// delete mainView; -// delete mainWindow; + delete window; } // ------------------------------------------- |