summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-23 22:15:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-23 22:15:16 +0300
commitde24f1e31208c4b006d6169e02450a72a85870b8 (patch)
tree3e5d412ccce1783a56d4c1b1038e6dcdfa889007 /src/gui
parent90132a83c309b5ae0c699e4fbbb7c62656321301 (diff)
downloadplus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.gz
plus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.bz2
plus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.xz
plus-de24f1e31208c4b006d6169e02450a72a85870b8.zip
Add serverinfowindow into windows creation tests.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windowmanager_unittest.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc
index 2c17de6b6..5a7410594 100644
--- a/src/gui/windowmanager_unittest.cc
+++ b/src/gui/windowmanager_unittest.cc
@@ -91,6 +91,7 @@
#include "gui/windows/quitdialog.h"
#include "gui/windows/registerdialog.h"
#include "gui/windows/serverdialog.h"
+#include "gui/windows/serverinfowindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/windows/shopwindow.h"
#include "gui/windows/shortcutwindow.h"
@@ -592,6 +593,15 @@ TEST_CASE("Windows tests", "windowmanager")
mainGraphics->updateScreen();
delete2(serverDialog);
}
+ SECTION("serversInfoWindow")
+ {
+ ServerInfo mCurrentServer;
+ ServerInfoWindow *serverInfoWindow = CREATEWIDGETR(ServerInfoWindow,
+ mCurrentServer);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(serverInfoWindow);
+ }
SECTION("setupWindow")
{
CREATEWIDGETV0(setupWindow, SetupWindow);