From de24f1e31208c4b006d6169e02450a72a85870b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Jun 2017 22:15:16 +0300 Subject: Add serverinfowindow into windows creation tests. --- src/gui/windowmanager_unittest.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- cgit v1.2.3-70-g09d2