diff options
-rw-r--r-- | sw/qa/api/SwXAutoTextContainer.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/api/SwXAutoTextContainer.cxx b/sw/qa/api/SwXAutoTextContainer.cxx index 1f1fc3df1d49..7c116544d9bf 100644 --- a/sw/qa/api/SwXAutoTextContainer.cxx +++ b/sw/qa/api/SwXAutoTextContainer.cxx @@ -53,6 +53,15 @@ public: Reference<text::XAutoTextContainer> xAutoTextContainer = text::AutoTextContainer::create(comphelper::getProcessComponentContext()); + try + { + // See qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java. + xAutoTextContainer->removeByName(u"myNewGroup2*1"_ustr); + } + catch (const container::NoSuchElementException&) + { + } + Reference<container::XNameAccess> xNA(xAutoTextContainer, UNO_QUERY_THROW); Sequence<rtl::OUString> aNames = xNA->getElementNames(); std::cout << aNames[0] << std::endl; |