sd/qa/unit/data/pptx/tdf152606.pptx |binary sd/qa/unit/export-tests.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit 47f66915f8d8f2418811417ad4b1109f31dee492 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Dec 21 10:51:47 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Dec 21 17:34:50 2022 +0000 tdf#152606: sd_export_tests: Add unittest Change-Id: Ib34a5d312228570b05a84884189f7bd0b45af522 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144650 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/unit/data/pptx/tdf152606.pptx b/sd/qa/unit/data/pptx/tdf152606.pptx new file mode 100644 index 000000000000..6b4c756d11a8 Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf152606.pptx differ diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index 9b5c73bd43f3..a7915dcc4c23 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -94,6 +94,7 @@ public: void testSoftEdges(); void testShadowBlur(); void testRhbz1870501(); + void testTdf152606(); void testTdf91060(); void testTdf128550(); void testTdf140714(); @@ -146,6 +147,7 @@ public: CPPUNIT_TEST(testSoftEdges); CPPUNIT_TEST(testShadowBlur); CPPUNIT_TEST(testRhbz1870501); + CPPUNIT_TEST(testTdf152606); CPPUNIT_TEST(testTdf91060); CPPUNIT_TEST(testTdf128550); CPPUNIT_TEST(testTdf140714); @@ -1496,6 +1498,18 @@ void SdExportTest::testRhbz1870501() saveAndReload("draw8"); } +void SdExportTest::testTdf152606() +{ + //Without the fix in place, it would crash at import time + createSdImpressDoc("pptx/tdf152606.pptx"); + saveAndReload("Impress Office Open XML"); + + uno::Reference<drawing::XDrawPagesSupplier> xDrawPagesSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<drawing::XDrawPage> xDrawPage(xDrawPagesSupplier->getDrawPages()->getByIndex(0), + uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xDrawPage->getCount()); +} + void SdExportTest::testTdf91060() { //Without the fix in place, it would crash at import time