diff options
Diffstat (limited to 'src/unittests/gui/widgets/browserbox.cc')
-rw-r--r-- | src/unittests/gui/widgets/browserbox.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc index 88f2f8b92..a6ad9773d 100644 --- a/src/unittests/gui/widgets/browserbox.cc +++ b/src/unittests/gui/widgets/browserbox.cc @@ -55,6 +55,14 @@ TEST_CASE("BrowserBox tests", "browserbox") mainGraphics = new SDLGraphics; imageHelper = new SDLImageHelper; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + ConfigManager::initConfiguration(); + setConfigDefaults2(config); + setBrandingDefaults(branding); + #ifdef USE_SDL2 SDLImageHelper::setRenderer(graphicsManager.createRenderer( graphicsManager.createWindow(640, 480, 0, @@ -64,13 +72,6 @@ TEST_CASE("BrowserBox tests", "browserbox") graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); #endif // USE_SDL2 - Dirs::initRootDir(); - Dirs::initHomeDir(); - - ConfigManager::initConfiguration(); - setConfigDefaults2(config); - setBrandingDefaults(branding); - theme = new Theme; Theme::selectSkin(); |