diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-23 22:15:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-23 22:15:16 +0300 |
commit | de24f1e31208c4b006d6169e02450a72a85870b8 (patch) | |
tree | 3e5d412ccce1783a56d4c1b1038e6dcdfa889007 /src/gui/windowmanager_unittest.cc | |
parent | 90132a83c309b5ae0c699e4fbbb7c62656321301 (diff) | |
download | manaplus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.gz manaplus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.bz2 manaplus-de24f1e31208c4b006d6169e02450a72a85870b8.tar.xz manaplus-de24f1e31208c4b006d6169e02450a72a85870b8.zip |
Add serverinfowindow into windows creation tests.
Diffstat (limited to 'src/gui/windowmanager_unittest.cc')
-rw-r--r-- | src/gui/windowmanager_unittest.cc | 10 |
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); |