diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-30 23:17:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-30 23:17:02 +0300 |
commit | db48ba035f350f2d34af2cec49ed6a74fe8d9019 (patch) | |
tree | 1eff9c2e4007884b3dd7a0e835d2d33a3b31ea76 /src/gui | |
parent | 2fdb687596ed775862b5a12c154bf6328e4cd7f7 (diff) | |
download | manaplus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.gz manaplus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.bz2 manaplus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.tar.xz manaplus-db48ba035f350f2d34af2cec49ed6a74fe8d9019.zip |
Add missing popup classes into windows creation tests.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmanager_unittest.cc | 24 |
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); |