tdf#48569: sw: Add unittest

Change-Id: I54ae1a8f59b02007de01b33f958d01dd98c24407
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92459
Tested-by: Jenkins
Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf48569.odt b/sw/qa/extras/ooxmlexport/data/tdf48569.odt
new file mode 100644
index 0000000..3ae5ac3
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf48569.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
index 9db6f8f..63a05d4 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
@@ -85,6 +85,13 @@
    CPPUNIT_ASSERT(eValue != text::TextContentAnchorType_AS_CHARACTER);
}

DECLARE_OOXMLEXPORT_TEST(testTdf48569, "tdf48569.odt")
{
    // File crashing while saving in LO
    text::TextContentAnchorType eValue = getProperty<text::TextContentAnchorType>(getShape(1), "AnchorType");
    CPPUNIT_ASSERT_EQUAL(text::TextContentAnchorType_AS_CHARACTER, eValue);
}

DECLARE_OOXMLEXPORT_TEST(testN750935, "n750935.docx")
{
    // Some page break types were ignores, resulting in less pages.