| commit | 6bf8ffbf90e701073a65e88ce4de26e40a24a07a | [log] |
|---|---|---|
| author | Xisco Fauli <xiscofauli@libreoffice.org> | Wed Jan 18 16:24:42 2023 +0100 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Wed Jan 18 21:05:51 2023 +0000 |
| tree | e8fcbfc125f83c335c1c2bcb26b4f1a31fd2ff72 | |
| parent | c2bcaaeab0787c6658eeda0f570bb6aa59d4d64e [diff] |
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());