From 3a772e7ed6c02f91de57320b1694c7d11e1c7618 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 3 Jan 2018 17:28:57 +0100 Subject: GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add() --- src/unittest/test_gameui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/unittest') 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); -- cgit v1.2.3