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/webpage_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/webpage_test.cpp')
-rw-r--r-- | src/tests/webpage_test.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tests/webpage_test.cpp b/src/tests/webpage_test.cpp index 5d563160..3527f1ed 100644 --- a/src/tests/webpage_test.cpp +++ b/src/tests/webpage_test.cpp @@ -21,8 +21,9 @@ #include <qtest_kde.h> -#include <QtTest> #include <QtCore> +#include <QtGui> +#include <QtTest> #include <QtWebKit> #include "webpage.h" @@ -74,15 +75,15 @@ WebPageTest::~WebPageTest() void WebPageTest::initTestCase() { -// tab = new WebTab; -// view = new WebView(tab); -// page = view->page(); + tab = new WebTab; + view = tab->view(); + page = tab->page(); } void WebPageTest::cleanupTestCase() { -// delete tab; + delete tab; } @@ -119,5 +120,5 @@ void WebPageTest::loadFinished() // ------------------------------------------- -QTEST_MAIN(WebPageTest) +QTEST_KDEMAIN(WebPageTest,GUI) #include "webpage_test.moc" |