summaryrefslogtreecommitdiff
path: root/test/test-ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-ui.cpp')
-rw-r--r--test/test-ui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-ui.cpp b/test/test-ui.cpp
index 2810cda..74953b3 100644
--- a/test/test-ui.cpp
+++ b/test/test-ui.cpp
@@ -2,6 +2,7 @@
#include <boost/test/unit_test.hpp>
#include <stream_support.h>
+#include "testHelpers.h"
#include "testMainWindow.h"
#include <gfx/models/texture.h>
#include <resource.h>
@@ -14,7 +15,7 @@ BOOST_GLOBAL_FIXTURE(TestMainWindowAppBase);
BOOST_AUTO_TEST_CASE(LoadFromFile)
{
SvgIcon svg(ImageDimensions {RENDER_SIZE}, Resource::mapPath("ui/icon/rails.svg"));
- const auto size = Texture::getSize(svg.texture);
- BOOST_CHECK_EQUAL(size, TextureDimensions(RENDER_SIZE, RENDER_SIZE, 1));
- Texture::save(svg.texture, "/tmp/rails.tga");
+ const auto size = svg.texture.getSize();
+ BOOST_CHECK_EQUAL(size, ImageDimensions(RENDER_SIZE, RENDER_SIZE));
+ svg.texture.saveColour((ANALYSIS_DIRECTORY / "rails.tga").c_str());
}