diff options
-rw-r--r-- | configmgr/qa/unit/test.cxx | 9 | ||||
-rw-r--r-- | test/user-template/registry-common/modifications.xcd | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 217f386456ee..03d44a9947ee 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -325,6 +325,15 @@ void Test::testLocalizedProperty() { CPPUNIT_ASSERT_EQUAL(OUString("pt-PT"), v); } { + // See <https://gerrit.libreoffice.org/c/core/+/147089> "configmgr: fix no longer found + // es-419 -> es fallback", which wants to retrieve the xml:lang="es" value for the passed-in + // "es-419" locale: + OUString v; + CPPUNIT_ASSERT( + access->getByHierarchicalName("/org.libreoffice.unittest/localized/*es-419") >>= v); + CPPUNIT_ASSERT_EQUAL(OUString("es"), v); + } + { // Make sure a degenerate passed-in "-" locale is handled gracefully: OUString v; CPPUNIT_ASSERT( diff --git a/test/user-template/registry-common/modifications.xcd b/test/user-template/registry-common/modifications.xcd index f4698116b932..fff0045b08ee 100644 --- a/test/user-template/registry-common/modifications.xcd +++ b/test/user-template/registry-common/modifications.xcd @@ -20,6 +20,7 @@ <prop oor:name="localized"> <value>default</value> <value xml:lang="en-US">en-US</value> + <value xml:lang="es">es</value> <value xml:lang="pt-PT">pt-PT</value> </prop> <prop oor:name="noDefaultLang"> |