aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_gameui.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-03 17:28:57 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commit3a772e7ed6c02f91de57320b1694c7d11e1c7618 (patch)
tree8662cc6a9ac690713d74abdf01406b30c86c8e3b /src/unittest/test_gameui.cpp
parent0ebaed430ad5cd2523d78d2e2c051576e948fe13 (diff)
downloadminetest-3a772e7ed6c02f91de57320b1694c7d11e1c7618.tar.gz
minetest-3a772e7ed6c02f91de57320b1694c7d11e1c7618.tar.bz2
minetest-3a772e7ed6c02f91de57320b1694c7d11e1c7618.zip
GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText
Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add()
Diffstat (limited to 'src/unittest/test_gameui.cpp')
-rw-r--r--src/unittest/test_gameui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unittest/test_gameui.cpp b/src/unittest/test_gameui.cpp
index 56f44ed87..3c6f2a5a4 100644
--- a/src/unittest/test_gameui.cpp
+++ b/src/unittest/test_gameui.cpp
@@ -47,11 +47,14 @@ void TestGameUI::testInit()
gui.initFlags();
UASSERT(gui.getFlags().show_chat)
UASSERT(gui.getFlags().show_hud)
+
+ // @TODO verify if we can create non UI nulldevice to test this function
+ gui.init();
}
void TestGameUI::testFlagSetters()
{
- GameUI gui;
+ GameUI gui{};
gui.showMinimap(true);
UASSERT(gui.getFlags().show_minimap);