summaryrefslogtreecommitdiff
path: root/src/unittests/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-14 23:25:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-14 23:25:44 +0300
commitc29d9bec9751fbd836e59cb3ba60e778fca2f987 (patch)
tree5b68dae05ae16a7a3d431e1fd76e0bf728e28a23 /src/unittests/gui
parent9e16f95bd0083af4eeacba5850c22d95529cce79 (diff)
downloadplus-c29d9bec9751fbd836e59cb3ba60e778fca2f987.tar.gz
plus-c29d9bec9751fbd836e59cb3ba60e778fca2f987.tar.bz2
plus-c29d9bec9751fbd836e59cb3ba60e778fca2f987.tar.xz
plus-c29d9bec9751fbd836e59cb3ba60e778fca2f987.zip
Add unit test for creation clan window.
Diffstat (limited to 'src/unittests/gui')
-rw-r--r--src/unittests/gui/windowmanager.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index fa708648b..bcab56608 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -65,8 +65,9 @@
#include "gui/windows/changeemaildialog.h"
#include "gui/windows/changepassworddialog.h"
#include "gui/windows/chatwindow.h"
-#include "gui/windows/connectiondialog.h"
+#include "gui/windows/clanwindow.h"
#include "gui/windows/confirmdialog.h"
+#include "gui/windows/connectiondialog.h"
#include "gui/windows/cutinwindow.h"
#include "gui/windows/debugwindow.h"
#include "gui/windows/didyouknowwindow.h"
@@ -342,6 +343,13 @@ TEST_CASE("Windows tests", "windowmanager")
mainGraphics->updateScreen();
delete2(chatWindow);
}
+ SECTION("ClanWindow")
+ {
+ CREATEWIDGETV0(clanWindow, ClanWindow);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(clanWindow);
+ }
SECTION("ConfirmDialog")
{
ConfirmDialog *dialog;