sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 22 ++++++++++++++++++++++ sw/qa/extras/ww8import/ww8import.cxx | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-)
New commits: commit f5075cbc922d621efa2fc060ae308fec98728da5 Author: Xisco Fauli <[email protected]> AuthorDate: Fri Dec 26 10:39:02 2025 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Fri Dec 26 17:47:26 2025 +0100 sw: move test to the corresponding place it's a ooxml file and not a ww8 one Since commit 3e8183e0c4b4c116cbd9187bfdfa7dfdf447805e Author: Oliver Specht <[email protected]> Date: Wed Aug 7 12:56:05 2024 +0200 tdf#134902 Test added Change-Id: I5fbd181d19b7fcc6b8acc07c28b8b8604f50b478 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196227 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/qa/extras/ww8import/data/tdf134902.docx b/sw/qa/extras/ooxmlimport/data/tdf134902.docx similarity index 100% rename from sw/qa/extras/ww8import/data/tdf134902.docx rename to sw/qa/extras/ooxmlimport/data/tdf134902.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 4f2804bc3ccb..c65c11c1ae02 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -1898,6 +1898,28 @@ CPPUNIT_TEST_FIXTURE(Test, testGroupShapeTextHighlight) } } +CPPUNIT_TEST_FIXTURE(Test, testTdf134902) +{ + createSwDoc("tdf134902.docx"); + CPPUNIT_ASSERT_EQUAL(4, getShapes()); + uno::Reference<drawing::XShape> xShape; + uno::Reference< beans::XPropertySet > XPropSet; + for (int i = 3; i<= getShapes(); i++) + { + xShape = getShape(i); + XPropSet.set( xShape, uno::UNO_QUERY_THROW ); + try + { + bool isVisible = true; + XPropSet->getPropertyValue(u"Visible"_ustr) >>= isVisible; + CPPUNIT_ASSERT(!isVisible); + } + catch (beans::UnknownPropertyException &) + { /* ignore */ } + } + +} + // tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT } // end of anonymous namespace diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx index 3ea621275efc..09abb1b2a2f4 100644 --- a/sw/qa/extras/ww8import/ww8import.cxx +++ b/sw/qa/extras/ww8import/ww8import.cxx @@ -295,28 +295,6 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf127048) CPPUNIT_ASSERT_EQUAL(false, getSwDocShell()->GetMacroCallsSeenWhileLoading()); } -CPPUNIT_TEST_FIXTURE(Test, testTdf134902) -{ - createSwDoc("tdf134902.docx"); - CPPUNIT_ASSERT_EQUAL(4, getShapes()); - uno::Reference<drawing::XShape> xShape; - uno::Reference< beans::XPropertySet > XPropSet; - for (int i = 3; i<= getShapes(); i++) - { - xShape = getShape(i); - XPropSet.set( xShape, uno::UNO_QUERY_THROW ); - try - { - bool isVisible = true; - XPropSet->getPropertyValue(u"Visible"_ustr) >>= isVisible; - CPPUNIT_ASSERT(!isVisible); - } - catch (beans::UnknownPropertyException &) - { /* ignore */ } - } - -} - // tests should only be added to ww8IMPORT *if* they fail round-tripping in ww8EXPORT } // end of anonymous namespace
