summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-11 17:24:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-11 17:24:19 +0300
commitece98b5c7baefc8fe0326bdfea8de4fe14ed0bf2 (patch)
treef41ca28dd48a621b421d187ffcc5553d298f570d /src/gui/widgets/browserbox_unittest.cc
parent7f5f2394d3f3dccf2e6a07a466f3840dafed8e04 (diff)
downloadmv-ece98b5c7baefc8fe0326bdfea8de4fe14ed0bf2.tar.gz
mv-ece98b5c7baefc8fe0326bdfea8de4fe14ed0bf2.tar.bz2
mv-ece98b5c7baefc8fe0326bdfea8de4fe14ed0bf2.tar.xz
mv-ece98b5c7baefc8fe0326bdfea8de4fe14ed0bf2.zip
Fix asserts in unit tests.
Diffstat (limited to 'src/gui/widgets/browserbox_unittest.cc')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc
index 1bae1f294..9aadeac09 100644
--- a/src/gui/widgets/browserbox_unittest.cc
+++ b/src/gui/widgets/browserbox_unittest.cc
@@ -21,6 +21,8 @@
#include "catch.hpp"
#include "client.h"
+#include "being/actorsprite.h"
+
#include "gui/fonts/font.h"
#include "gui/widgets/browserbox.h"
@@ -41,6 +43,7 @@ TEST_CASE("BrowserBox tests", "browserbox")
logger = new Logger();
imageHelper = new SDLImageHelper();
theme = new Theme;
+ ActorSprite::load();
Widget::setGlobalFont(new Font("/usr/share/fonts/truetype/"
"ttf-dejavu/DejaVuSans-Oblique.ttf", 18));
BrowserBox *const box = new BrowserBox(nullptr,