sd/qa/unit/data/pptx/tdf129372.pptx |binary sd/qa/unit/export-tests-ooxml2.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit ed3b44ef622bc87da2425322521c293c2a46a1c5 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Apr 9 14:12:32 2020 +0200 Commit: Xisco Faulí <xiscofa...@libreoffice.org> CommitDate: Thu Apr 9 17:24:21 2020 +0200 tdf#129372: Add unittest Change-Id: I2747e1210fd687effb0efcd068b1ffffcc802260 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91969 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> diff --git a/sd/qa/unit/data/pptx/tdf129372.pptx b/sd/qa/unit/data/pptx/tdf129372.pptx new file mode 100644 index 000000000000..ff172c9cdf13 Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf129372.pptx differ diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 5c6167485c87..17c0ea5e5dca 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -186,6 +186,7 @@ public: void testTdf127372(); void testTdf127379(); void testTdf98603(); + void testTdf129372(); void testShapeGlowEffect(); void testTdf131554(); @@ -291,6 +292,7 @@ public: CPPUNIT_TEST(testTdf127372); CPPUNIT_TEST(testTdf127379); CPPUNIT_TEST(testTdf98603); + CPPUNIT_TEST(testTdf129372); CPPUNIT_TEST(testShapeGlowEffect); CPPUNIT_TEST(testTdf131554); @@ -2713,6 +2715,18 @@ void SdOOXMLExportTest2::testTdf98603() CPPUNIT_ASSERT_EQUAL(OUString("IL"), aLocale.Country); } +void SdOOXMLExportTest2::testTdf129372() +{ + //Without the fix in place, it would crash at import time + ::sd::DrawDocShellRef xDocShRef = loadURL( m_directories.getURLFromSrc("/sd/qa/unit/data/pptx/tdf129372.pptx"), PPTX); + xDocShRef = saveAndReload( xDocShRef.get(), PPTX ); + const SdrPage *pPage = GetPage( 1, xDocShRef.get() ); + + const SdrObject* pObj = pPage->GetObj(0); + CPPUNIT_ASSERT_MESSAGE( "no object", pObj != nullptr); + CPPUNIT_ASSERT_EQUAL( static_cast<sal_uInt16>(OBJ_OLE2), pObj->GetObjIdentifier() ); +} + void SdOOXMLExportTest2::testShapeGlowEffect() { ::sd::DrawDocShellRef xDocShRef = loadURL( m_directories.getURLFromSrc("sd/qa/unit/data/pptx/shape-glow-effect.pptx"), PPTX); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits