sd/qa/unit/data/odp/tdf128049.odp |binary sd/qa/unit/export-tests-ooxml2.cxx | 16 ++++++++++++++++ 2 files changed, 16 insertions(+)
New commits: commit 006fea5a3ec04394081cc28035be9e4c1e0ffc83 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Apr 21 16:20:19 2020 +0200 Commit: Xisco Faulí <xiscofa...@libreoffice.org> CommitDate: Tue Apr 21 19:21:12 2020 +0200 tdf#128049: sd: Add unittest Change-Id: Ic33aa2c023c9c5e8b5a67273674579ac7673a2b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92637 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> diff --git a/sd/qa/unit/data/odp/tdf128049.odp b/sd/qa/unit/data/odp/tdf128049.odp new file mode 100644 index 000000000000..8b9990a5c5b7 Binary files /dev/null and b/sd/qa/unit/data/odp/tdf128049.odp differ diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index b414497e75be..3a2a3802e38a 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -123,6 +123,7 @@ public: void testTdf112333(); void testTdf112552(); void testTdf112557(); + void testTdf128049(); void testTdf106026(); void testTdf112334(); void testTdf112089(); @@ -233,6 +234,7 @@ public: CPPUNIT_TEST(testTdf112333); CPPUNIT_TEST(testTdf112552); CPPUNIT_TEST(testTdf112557); + CPPUNIT_TEST(testTdf128049); CPPUNIT_TEST(testTdf106026); CPPUNIT_TEST(testTdf112334); CPPUNIT_TEST(testTdf112089); @@ -1388,6 +1390,20 @@ void SdOOXMLExportTest2::testTdf112557() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testTdf128049() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf128049.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp[1]/p:spPr/a:custGeom", 0); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp[1]/p:spPr/a:prstGeom", "prst", "noSmoking"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp[1]/p:spPr/a:prstGeom/a:avLst/a:gd", "name", "adj"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp[1]/p:spPr/a:prstGeom/a:avLst/a:gd", "fmla", "val 12500"); + xDocShRef->DoClose(); +} + void SdOOXMLExportTest2::testTdf106026() { ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf106026.odp"), ODP); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits