summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-02-02 12:10:13 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-02-02 13:20:59 +0100
commit332faa63407305852f5044e4bbc41302ccfe46cd (patch)
tree70ff667ea87c20c381a9938924b1c909f8d22e2f
parentsw doc model xml dump: show details of comments (diff)
downloadcore-332faa63407305852f5044e4bbc41302ccfe46cd.tar.gz
core-332faa63407305852f5044e4bbc41302ccfe46cd.zip
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 <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docxbin391748 -> 0 bytes
-rw-r--r--sw/qa/core/objectpositioning/objectpositioning.cxx14
2 files changed, 0 insertions, 14 deletions
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
--- a/sw/qa/core/objectpositioning/data/tdf154863-img-move-crash.docx
+++ /dev/null
Binary files 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 <flyfrm.hxx>
#include <frmatr.hxx>
-#include <vcl/scheduler.hxx>
-
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<drawing::XShape> xShape(getShapeByName(u"Image26"), uno::UNO_QUERY);
- uno::Reference<beans::XPropertySet> xShapeProps(xShape, uno::UNO_QUERY);
- xShapeProps->setPropertyValue("VertOrient", uno::Any(static_cast<sal_Int32>(0)));
- xShapeProps->setPropertyValue("VertOrientPosition", uno::Any(static_cast<sal_Int32>(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.