diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-07-26 15:26:40 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-28 18:04:47 +0200 |
commit | 52d7c6be46663d4a28745a0cfa2ced5493637230 (patch) | |
tree | b2edfc49121f4cbe95d00e02032c1945441b13a7 /sd/qa | |
parent | b82489382e18494694530874480774e2bb29830e (diff) |
sd lok: extend language status with BCP 47 language tag info in here as well
This brings Impress in sync with Calc, which does this since commit
47025060e4474d23e3bd97053a77b3943eeae724 (Send Bcp47 codes with region,
2019-08-28).
Change-Id: I04b92c85b6627e145b5271a6f84780257e8f0d55
Reviewed-on: https://gerrit.libreoffice.org/78231
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/tiledrendering/tiledrendering.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx index af443317b94e..e5783a1731b3 100644 --- a/sd/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx @@ -1891,7 +1891,11 @@ void SdTiledRenderingTest::testLanguageStatus() std::unique_ptr<SfxPoolItem> xItem2; pView1->GetViewFrame()->GetBindings().QueryState(SID_LANGUAGE_STATUS, xItem1); pView2->GetViewFrame()->GetBindings().QueryState(SID_LANGUAGE_STATUS, xItem2); - CPPUNIT_ASSERT(dynamic_cast< const SfxStringItem* >(xItem1.get())); + auto pStringItem = dynamic_cast<const SfxStringItem*>(xItem1.get()); + CPPUNIT_ASSERT(pStringItem); + + CPPUNIT_ASSERT_EQUAL(OUString("English (USA);en-US"), pStringItem->GetValue()); + CPPUNIT_ASSERT(dynamic_cast< const SfxStringItem* >(xItem2.get())); } } |