summaryrefslogtreecommitdiff
path: root/src/unittests/gui/windowmanager.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-14 23:19:48 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-14 23:19:48 +0300
commit9e16f95bd0083af4eeacba5850c22d95529cce79 (patch)
tree924b21a0ffad1369f27f76916eb66604e3b128df /src/unittests/gui/windowmanager.cc
parent1070c686aede19ceb1c359ae0d9bd26874d03d96 (diff)
downloadmanaverse-9e16f95bd0083af4eeacba5850c22d95529cce79.tar.gz
manaverse-9e16f95bd0083af4eeacba5850c22d95529cce79.tar.bz2
manaverse-9e16f95bd0083af4eeacba5850c22d95529cce79.tar.xz
manaverse-9e16f95bd0083af4eeacba5850c22d95529cce79.zip
Add unit test for creation window CharCreateDialog.
Diffstat (limited to 'src/unittests/gui/windowmanager.cc')
-rw-r--r--src/unittests/gui/windowmanager.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index fb937f0b4..fa708648b 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -60,6 +60,7 @@
#include "gui/windows/buydialog.h"
#include "gui/windows/buyingstoreselldialog.h"
#include "gui/windows/buyselldialog.h"
+#include "gui/windows/charcreatedialog.h"
#include "gui/windows/charselectdialog.h"
#include "gui/windows/changeemaildialog.h"
#include "gui/windows/changepassworddialog.h"
@@ -323,15 +324,15 @@ TEST_CASE("Windows tests", "windowmanager")
}
SECTION("CharCreateDialog")
{
-// LoginData data;
-// CharSelectDialog *dialog2;
-// CREATEWIDGETV(dialog2, CharSelectDialog, data);
-// CharCreateDialog *dialog;
-// CREATEWIDGETV(dialog, CharCreateDialog, dialog2, 0);
-// gui->draw();
-// mainGraphics->updateScreen();
-// delete2(dialog);
-// delete2(dialog2);
+ LoginData data;
+ CharSelectDialog *dialog2;
+ CREATEWIDGETV(dialog2, CharSelectDialog, data);
+ CharCreateDialog *dialog;
+ CREATEWIDGETV(dialog, CharCreateDialog, dialog2, 0);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(dialog);
+ delete2(dialog2);
}
SECTION("ChatWindow")
{