From 6969655f6d251f0c638c11c8561493e938695fa0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Apr 2013 01:50:57 +0300 Subject: fix browserbox unit test. --- src/gui/widgets/browserbox_unittest.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index 6cfe4a425..de42597e4 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -20,6 +20,9 @@ #include "logger.h" +#include "client.h" + +#include "gui/sdlfont.h" #include "gui/theme.h" #include "gui/widgets/browserbox.h" @@ -34,11 +37,19 @@ #include "debug.h" +extern const char *dirSeparator; + TEST(browserbox, test1) { PHYSFS_init("manaplus"); + dirSeparator = "/"; + Client::Options options; + Client client(options); + logger = new Logger(); Theme *theme = Theme::instance(); + gcn::Widget::setGlobalFont(new SDLFont("/usr/share/fonts/truetype/" + "ttf-dejavu/DejaVuSans-Oblique.ttf", 18)); BrowserBox *box = new BrowserBox(nullptr, BrowserBox::AUTO_WRAP); box->setWidth(100); std::string row = "test"; -- cgit v1.2.3-70-g09d2