]> Git trees. - libqmvoc.git/commitdiff
Add a 1==1 test for keduvocdocument to expand upon.
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 17 Sep 2007 18:33:07 +0000 (18:33 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 17 Sep 2007 18:33:07 +0000 (18:33 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=713531

keduvocdocument/tests/CMakeLists.txt
keduvocdocument/tests/keduvocdocumentvalidatortest.cpp [new file with mode: 0644]

index 62175e8013bf6898affa056d503ecf08e0508426..d9b6252b81f467ff16dc63697d62b66cec2871b7 100644 (file)
@@ -1,4 +1,13 @@
 
+
+kde4_add_unit_test(keduvocdocumentvalidatortest keduvocdocumentvalidatortest.cpp)
+target_link_libraries(keduvocdocumentvalidatortest keduvocdocument
+    ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY})
+
+
+# CONVERTER:
+
+
 include_directories( ${CMAKE_SOURCE_DIR}/libkdeedu/keduvocdocument/   )
 
 
@@ -12,3 +21,7 @@ kde4_add_executable(converter ${converter_SRCS})
 
 target_link_libraries(converter keduvocdocument )
 
+
+
+
+
diff --git a/keduvocdocument/tests/keduvocdocumentvalidatortest.cpp b/keduvocdocument/tests/keduvocdocumentvalidatortest.cpp
new file mode 100644 (file)
index 0000000..52f3d88
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
+ USA
+*/
+
+#include "../keduvocdocument.h"
+
+#include <qtest_kde.h>
+
+#include <qobject.h>
+#include <qvalidator.h>
+
+class KEduVocDocumentValidatorTest
+  : public QObject
+{
+    Q_OBJECT
+
+private slots:
+    void testDocumentAboutInfo();
+};
+
+void KEduVocDocumentValidatorTest::testDocumentAboutInfo()
+{
+    QVERIFY( 1==1 );
+}
+
+QTEST_KDEMAIN_CORE( KEduVocDocumentValidatorTest )
+
+#include "keduvocdocumentvalidatortest.moc"