diff options
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 03d44a9947ee..60d19be8472c 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -334,6 +334,14 @@ void Test::testLocalizedProperty() { CPPUNIT_ASSERT_EQUAL(OUString("es"), v); } { + // See <https://git.libreoffice.org/core/+/dfc28be2487c13be36a90efd778b8d8f179c589d%5E%21> + // "configmgr: Use a proper LanguageTag-based locale fallback mechanism": + OUString v; + CPPUNIT_ASSERT( + access->getByHierarchicalName("/org.libreoffice.unittest/localized/*zh-Hant-TW") >>= v); + CPPUNIT_ASSERT_EQUAL(OUString("zh-TW"), v); + } + { // Make sure a degenerate passed-in "-" locale is handled gracefully: OUString v; CPPUNIT_ASSERT( |