[poppler] 2 commits - qt4/tests
Pino Toscano
pino at kemper.freedesktop.org
Wed Feb 13 11:54:13 PST 2008
qt4/tests/check_dateConversion.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 9cfe10ab7f51d329647e102e446baaef043d8cc6
Merge: e918729... 7d65b4d...
Author: Pino Toscano <pino at kde.org>
Date: Wed Feb 13 20:53:43 2008 +0100
Merge branch 'master' of ssh://pino@git.freedesktop.org/git/poppler/poppler
commit e9187292701e72db1020f7701d0725d83eee4b00
Author: Pino Toscano <pino at kde.org>
Date: Wed Feb 13 19:41:57 2008 +0100
Do the one-time initialisation in initTestCase().
diff --git a/qt4/tests/check_dateConversion.cpp b/qt4/tests/check_dateConversion.cpp
index c9e2e20..c1f84e2 100644
--- a/qt4/tests/check_dateConversion.cpp
+++ b/qt4/tests/check_dateConversion.cpp
@@ -9,17 +9,21 @@ class TestDateConv: public QObject
{
Q_OBJECT
private slots:
+ void initTestCase();
void checkDates_data();
void checkDates();
void checkInvalidDates_data();
void checkInvalidDates();
};
-void TestDateConv::checkDates_data()
+void TestDateConv::initTestCase()
{
qRegisterMetaType<QDate>("QDate");
qRegisterMetaType<QTime>("QTime");
+}
+void TestDateConv::checkDates_data()
+{
QTest::addColumn<QByteArray>("input");
QTest::addColumn<QDate>("day");
QTest::addColumn<QTime>("time");
@@ -134,5 +138,5 @@ void TestDateConv::checkInvalidDates()
}
QTEST_MAIN(TestDateConv)
-#include "check_dateConversion.moc"
+#include "check_dateConversion.moc"
More information about the poppler
mailing list