diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-14 23:19:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-14 23:19:48 +0300 |
commit | 9e16f95bd0083af4eeacba5850c22d95529cce79 (patch) | |
tree | 924b21a0ffad1369f27f76916eb66604e3b128df /src | |
parent | 1070c686aede19ceb1c359ae0d9bd26874d03d96 (diff) | |
download | manaverse-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')
-rw-r--r-- | src/unittests/fs/virtfs/virtfs.cc | 4 | ||||
-rw-r--r-- | src/unittests/fs/virtfs/virtfs1_enumerate.cc | 4 | ||||
-rw-r--r-- | src/unittests/gui/windowmanager.cc | 19 |
3 files changed, 14 insertions, 13 deletions
diff --git a/src/unittests/fs/virtfs/virtfs.cc b/src/unittests/fs/virtfs/virtfs.cc index 5bdfda2ea..d316b4ac5 100644 --- a/src/unittests/fs/virtfs/virtfs.cc +++ b/src/unittests/fs/virtfs/virtfs.cc @@ -256,8 +256,8 @@ TEST_CASE("VirtFs enumerateFiles1", "") VirtFs::List *list = nullptr; - const int cnt1 = VirtFs::exists("test/test2.txt") ? 28 : 27; - const int cnt2 = 28; + const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28; + const int cnt2 = 29; VirtFs::permitLinks(false); list = VirtFs::enumerateFiles("test"); diff --git a/src/unittests/fs/virtfs/virtfs1_enumerate.cc b/src/unittests/fs/virtfs/virtfs1_enumerate.cc index 22db74cb2..25f523adf 100644 --- a/src/unittests/fs/virtfs/virtfs1_enumerate.cc +++ b/src/unittests/fs/virtfs/virtfs1_enumerate.cc @@ -82,8 +82,8 @@ TEST_CASE("VirtFs1 enumerateFiles1", "") VirtFs::List *list = nullptr; - const int cnt1 = VirtFs::exists("test/test2.txt") ? 28 : 27; - const int cnt2 = 28; + const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28; + const int cnt2 = 29; VirtFs::permitLinks(false); list = VirtFs::enumerateFiles("test"); 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") { |