summaryrefslogtreecommitdiff
path: root/src/unittests/gui/windowmanager_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-13 03:48:56 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-13 03:48:56 +0300
commitb5cb8b8ed49f80ebbb82cacb55c16a03318db30b (patch)
tree0a2d308fdf870a8b0564b585087abaea867457ec /src/unittests/gui/windowmanager_unittest.cc
parent0d9761f9a6b375f6018a16b21cf2fbbb01155c08 (diff)
downloadmanaverse-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.gz
manaverse-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.bz2
manaverse-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.tar.xz
manaverse-b5cb8b8ed49f80ebbb82cacb55c16a03318db30b.zip
Fix unit tests after latest changes.
Diffstat (limited to 'src/unittests/gui/windowmanager_unittest.cc')
-rw-r--r--src/unittests/gui/windowmanager_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unittests/gui/windowmanager_unittest.cc b/src/unittests/gui/windowmanager_unittest.cc
index 75949fc44..1a7ff7b61 100644
--- a/src/unittests/gui/windowmanager_unittest.cc
+++ b/src/unittests/gui/windowmanager_unittest.cc
@@ -117,8 +117,10 @@
#include "render/sdlgraphics.h"
+#include "resources/groupinfo.h"
#include "resources/sdlimagehelper.h"
+#include "resources/db/groupdb.h"
#include "resources/db/unitsdb.h"
#include "resources/item/item.h"
@@ -655,10 +657,14 @@ TEST_CASE("Windows tests", "windowmanager")
}
SECTION("StatusWindow")
{
+ GroupDb::GroupInfos &groups = GroupDb::getGroups();
+ groups[0].name = std::string();
+ groups[0].longName = std::string();
CREATEWIDGETV0(statusWindow, StatusWindow);
gui->draw();
mainGraphics->updateScreen();
delete2(statusWindow);
+ groups.clear();
}
SECTION("TextCommandEditor")
{