comparison 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
comparison
equal deleted inserted replaced
558:bde15f68942b 559:dd8a295d5b4d
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=2)
5 * and comes with ABSOLUTELY NO WARRANTY!
6 * See LICENSE.txt for details.
7 */
8
9 #include "mainwindowtest.h"
10
11 #ifdef Q_OS_WIN
12 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
13 #else
14 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
15 #endif
16
17 MainWindowTest::MainWindowTest() : MainWindow(true) {
18 }
19
20 void MainWindowTest::closeApp() {
21 emit closeCalled();
22 }
23
24 void MainWindowTest::testInvalidUpdate() {
25 // TODO
26 }
27
28 void MainWindowTest::testValidUpdate() {
29 // TODO
30 }
31
32 QTEST_MAIN(MainWindowTest);

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