diff ui/tests/mainwindowtest.cpp @ 559:dd8a295d5b4d

Add framework for mainwindow testing
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 22 May 2014 10:20:45 +0000
parents
children aee3eb10bbba
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/mainwindowtest.cpp	Thu May 22 10:20:45 2014 +0000
@@ -0,0 +1,32 @@
+/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=2)
+ * and comes with ABSOLUTELY NO WARRANTY!
+ * See LICENSE.txt for details.
+ */
+
+#include "mainwindowtest.h"
+
+#ifdef Q_OS_WIN
+ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
+#else
+ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
+#endif
+
+MainWindowTest::MainWindowTest() : MainWindow(true) {
+}
+
+void MainWindowTest::closeApp() {
+    emit closeCalled();
+}
+
+void MainWindowTest::testInvalidUpdate() {
+    // TODO
+}
+
+void MainWindowTest::testValidUpdate() {
+    // TODO
+}
+
+QTEST_MAIN(MainWindowTest);

http://wald.intevation.org/projects/trustbridge/