diff options
Diffstat (limited to 'src/unittests/resources/dye/dye.cc')
-rw-r--r-- | src/unittests/resources/dye/dye.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unittests/resources/dye/dye.cc b/src/unittests/resources/dye/dye.cc index fcdeb7b17..b53601abe 100644 --- a/src/unittests/resources/dye/dye.cc +++ b/src/unittests/resources/dye/dye.cc @@ -21,6 +21,7 @@ #include "unittests/unittests.h" #include "client.h" +#include "dirs.h" #include "graphicsmanager.h" #include "logger.h" @@ -29,6 +30,8 @@ #include "fs/virtfs/fs.h" #include "gui/gui.h" +#include "gui/userpalette.h" +#include "gui/theme.h" #include "resources/sdlimagehelper.h" #ifdef USE_SDL2 @@ -1985,6 +1988,13 @@ TEST_CASE("Dye real dye", "") graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); #endif // USE_SDL2 + userPalette = new UserPalette; + theme = new Theme; + Theme::selectSkin(); + + Dirs::initRootDir(); + Dirs::initHomeDir(); + ActorSprite::load(); SECTION("B dye") @@ -2001,6 +2011,9 @@ TEST_CASE("Dye real dye", "") { dyeCheck("|A:#0000FFFF,FF000050", "arrow_up_A.png"); } + + delete2(userPalette); + delete2(theme); delete2(client); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); |