summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-11-21 22:06:30 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-12-02 11:53:00 +0000
commitcd43959e10a7d3120b3b5059b44ad6b62c54bd3e (patch)
tree12ec975c9e3e46cf40d2e511cc76016a3ad529ad /test
parentafabf409aa8b299806726c69edc3ab0258f50c02 (diff)
Postfix rather than prefix locale to directory name
as this is what vnd.libreoffice.image:// expects for localized images Change-Id: I454ff86b86e11248f47ab65f682fb57e52d0f7e5 Reviewed-on: https://gerrit.libreoffice.org/31057 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'test')
-rw-r--r--test/source/screenshot_test.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index dcd0befda337..28788d0548a9 100644
--- a/test/source/screenshot_test.cxx
+++ b/test/source/screenshot_test.cxx
@@ -68,7 +68,8 @@ void ScreenshotTest::implSaveScreenshot(const Bitmap& rScreenshot, const OString
{
OUString aDirname, aBasename;
splitHelpId(rScreenshotId, aDirname, aBasename);
- aDirname = m_aScreenshotDirectory + maCurrentLanguage + "/" + aDirname;
+ aDirname = m_aScreenshotDirectory + "/" + aDirname +
+ ( (maCurrentLanguage == "en-US") ? OUString() : "/" + maCurrentLanguage );
osl::FileBase::RC err = osl::Directory::createPath(m_directories.getURLFromWorkdir(OUStringToOString(aDirname,RTL_TEXTENCODING_UTF8).getStr()));
CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to create " + aDirname, RTL_TEXTENCODING_UTF8).getStr(),