summaryrefslogtreecommitdiff
path: root/src/tests/tabbar_test.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-03 16:19:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-03 16:19:53 +0100
commite34963f2365d6352b8d1bc0761697cc0df5dd5ff (patch)
tree0888f25651088fb00d4a84c7bf5c64278df9c20e /src/tests/tabbar_test.cpp
parentFinally... unit tests!! (diff)
downloadrekonq-e34963f2365d6352b8d1bc0761697cc0df5dd5ff.tar.xz
Trivial MainView Test
and now we have two.. :)
Diffstat (limited to 'src/tests/tabbar_test.cpp')
-rw-r--r--src/tests/tabbar_test.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/tests/tabbar_test.cpp b/src/tests/tabbar_test.cpp
index 7b40c487..08f295d1 100644
--- a/src/tests/tabbar_test.cpp
+++ b/src/tests/tabbar_test.cpp
@@ -18,8 +18,11 @@
* Boston, MA 02110-1301 USA
*/
-#include <QtGui/QtGui>
-#include <QtTest/QtTest>
+#include <qtest_kde.h>
+
+#include <QtTest>
+#include <QtCore>
+#include <QtGui>
#include "../tabbar.h"
@@ -101,6 +104,7 @@ void TabBarTest::cleanup()
{
}
+// -------------------------------------------
void TabBarTest::tabbar_data()
{
@@ -109,8 +113,10 @@ void TabBarTest::tabbar_data()
void TabBarTest::tabbar()
{
+ SubTabBar widget;
}
+// -------------------------------------------
void TabBarTest::tabSizeHint_data()
{
@@ -127,7 +133,8 @@ void TabBarTest::tabSizeHint()
// SubTabBar bar;
// QVERIFY(bar.call_tabSizeHint(index).width() <= 250);
}
+
+// -------------------------------------------
-
-QTEST_MAIN(TabBarTest)
-#include "tst_tabbar.moc"
+QTEST_KDEMAIN(TabBarTest, GUI)
+#include "tabbar_test.moc"