diff options
-rw-r--r-- | test/source/bootstrapfixture.cxx | 4 | ||||
-rw-r--r-- | test/source/sheet/xsheetannotation.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx index dc7c7b0121f6..c76995af4af8 100644 --- a/test/source/bootstrapfixture.cxx +++ b/test/source/bootstrapfixture.cxx @@ -19,6 +19,7 @@ #include <com/sun/star/ucb/XContentProvider.hpp> #include <com/sun/star/ucb/XUniversalContentBroker.hpp> +#include <i18nlangtag/mslangid.hxx> #include <vcl/svapp.hxx> #include <tools/resmgr.hxx> #include <vcl/graphicfilter.hxx> @@ -64,6 +65,9 @@ void test_init_impl(bool bAssertOnDialog, bool bNeedUCB, aLocalOptions.SetLocaleConfigString( aLangISO ); aLocalOptions.SetUILocaleConfigString( aLangISO ); + MsLangId::setConfiguredSystemUILanguage(LANGUAGE_ENGLISH_US); + LanguageTag::setConfiguredSystemLanguage(LANGUAGE_ENGLISH_US); + InitVCL(); if (Application::IsHeadlessModeRequested()) Application::EnableHeadlessMode(true); diff --git a/test/source/sheet/xsheetannotation.cxx b/test/source/sheet/xsheetannotation.cxx index 3a24c31d36dd..e59f94a224e1 100644 --- a/test/source/sheet/xsheetannotation.cxx +++ b/test/source/sheet/xsheetannotation.cxx @@ -47,7 +47,7 @@ void XSheetAnnotation::testGetDate() uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW); OUString aDate = aSheetAnnotation->getDate(); - CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate.equals("01/17/13")); + CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate.equals("01/17/2013")); } void XSheetAnnotation::testGetIsVisible() { |