From 332faa63407305852f5044e4bbc41302ccfe46cd Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 2 Feb 2024 12:10:13 +0100 Subject: Revert "tdf#154863 Add unit test to cover crash on image move" This reverts commit 16d46e25e03cd506576ac3dcb6be56270b47b4a6. Reason for revert: macOs jenkins fails in CppunitTest_sw_core_objectpositioning now Change-Id: I45ed894c9773e0dc23d0f9fdd9066eb5ca7110f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162901 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- .../data/tdf154863-img-move-crash.docx | Bin 391748 -> 0 bytes sw/qa/core/objectpositioning/objectpositioning.cxx | 14 -------------- 2 files changed, 14 deletions(-) delete mode 100644 sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docx diff --git a/sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docx b/sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docx deleted file mode 100644 index ca402edef74d..000000000000 Binary files a/sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docx and /dev/null differ diff --git a/sw/qa/core/objectpositioning/objectpositioning.cxx b/sw/qa/core/objectpositioning/objectpositioning.cxx index 717d63ded052..bf560cbdaf90 100644 --- a/sw/qa/core/objectpositioning/objectpositioning.cxx +++ b/sw/qa/core/objectpositioning/objectpositioning.cxx @@ -25,8 +25,6 @@ #include #include -#include - namespace { /// Covers sw/source/core/objectpositioning/ fixes. @@ -58,18 +56,6 @@ CPPUNIT_TEST_FIXTURE(Test, testOverlapCrash) pWrtShell->SplitNode(); } -CPPUNIT_TEST_FIXTURE(Test, testImgMoveCrash) -{ - createSwDoc("tdf154863-img-move-crash.docx"); - uno::Reference xShape(getShapeByName(u"Image26"), uno::UNO_QUERY); - uno::Reference xShapeProps(xShape, uno::UNO_QUERY); - xShapeProps->setPropertyValue("VertOrient", uno::Any(static_cast(0))); - xShapeProps->setPropertyValue("VertOrientPosition", uno::Any(static_cast(3000))); - Scheduler::ProcessEventsToIdle(); - // Crash expected before assert if bug exists - CPPUNIT_ASSERT(true); -} - CPPUNIT_TEST_FIXTURE(Test, testVertPosFromBottom) { // Create a document, insert a shape and position it 1cm above the bottom of the body area. -- cgit