tdf#152710: sw_odfexport: Add unittest

Change-Id: Ib5ca4aa64f9cfd7e221620ab1d571f7f1e012033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145747
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/extras/odfexport/data/tdf152710.odt b/sw/qa/extras/odfexport/data/tdf152710.odt
new file mode 100644
index 0000000..9fadf26
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/tdf152710.odt
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index f8c774b..4c8565b 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -525,6 +525,12 @@ CPPUNIT_TEST_FIXTURE(Test, testOOoxmlEmbedded)
    CPPUNIT_ASSERT_EQUAL(sal_Int32(SOFFICE_FILEFORMAT_8), comphelper::OStorageHelper::GetXStorageFormat(xStorage4));
}

DECLARE_ODFEXPORT_TEST(testTdf152710, "tdf152710.odt")
{
    // Without this fix in place, this test would have crash at import time
    CPPUNIT_ASSERT_EQUAL(2, getPages());
}

DECLARE_ODFEXPORT_TEST(testredlineTextFrame, "redlineTextFrame.odt")
{
    CPPUNIT_ASSERT_EQUAL(2, getShapes());