summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-30 23:17:02 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-30 23:17:02 +0300
commitdb48ba035f350f2d34af2cec49ed6a74fe8d9019 (patch)
tree1eff9c2e4007884b3dd7a0e835d2d33a3b31ea76
parent2fdb687596ed775862b5a12c154bf6328e4cd7f7 (diff)
downloadplus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.gz
plus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.bz2
plus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.xz
plus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.zip
Add missing popup classes into windows creation tests.
-rw-r--r--src/gui/windowmanager_unittest.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc
index b638d7c01..3810252ab 100644
--- a/src/gui/windowmanager_unittest.cc
+++ b/src/gui/windowmanager_unittest.cc
@@ -43,7 +43,10 @@
#include "gui/popups/beingpopup.h"
#include "gui/popups/itempopup.h"
#include "gui/popups/popupmenu.h"
+#include "gui/popups/skillpopup.h"
#include "gui/popups/spellpopup.h"
+#include "gui/popups/speechbubble.h"
+#include "gui/popups/statuspopup.h"
#include "gui/popups/textboxpopup.h"
#include "gui/popups/textpopup.h"
@@ -652,6 +655,20 @@ TEST_CASE("Windows tests", "windowmanager")
mainGraphics->updateScreen();
delete2(popupMenu);
}
+ SECTION("skillPopup")
+ {
+ CREATEWIDGETV0(skillPopup, SkillPopup);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(skillPopup);
+ }
+ SECTION("SpeechBubble")
+ {
+ SpeechBubble *bubble = CREATEWIDGETR0(SpeechBubble);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(bubble);
+ }
SECTION("beingPopup")
{
CREATEWIDGETV0(beingPopup, BeingPopup);
@@ -687,6 +704,13 @@ TEST_CASE("Windows tests", "windowmanager")
mainGraphics->updateScreen();
delete2(spellPopup);
}
+ SECTION("StatusPopup")
+ {
+ StatusPopup *status = CREATEWIDGETR0(StatusPopup);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(status);
+ }
SECTION("desktop")
{
CREATEWIDGETV(desktop, Desktop, nullptr);