diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-21 16:20:19 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-21 19:21:12 +0200 |
commit | 006fea5a3ec04394081cc28035be9e4c1e0ffc83 (patch) | |
tree | 2ed9e34a8e2034a23913387c0f908e4b8ae1d54c | |
parent | 3855d070f1b05dcc6b7ec197f5111e99ad201d38 (diff) |
tdf#128049: sd: Add unittest
Change-Id: Ic33aa2c023c9c5e8b5a67273674579ac7673a2b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92637
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sd/qa/unit/data/odp/tdf128049.odp | bin | 0 -> 18269 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf128049.odp b/sd/qa/unit/data/odp/tdf128049.odp Binary files differnew file mode 100644 index 000000000000..8b9990a5c5b7 --- /dev/null +++ b/sd/qa/unit/data/odp/tdf128049.odp 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); |