diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-12 21:58:07 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-12 23:28:06 +0200 |
commit | 04f5e991178cdc459d34b6d6406603f180334425 (patch) | |
tree | a6757ab0069e2e4baf7ac086a6a43c717ea8fe2e /sd | |
parent | 0733b458f4ad83be8102edec1e1d47c2379ec79e (diff) |
tdf#48735: Add unittest
Change-Id: I9114ff79c808a552edf06be534e10f2106dfe171
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92092
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/odp/tdf48735.odp | bin | 0 -> 15137 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/tdf48735.odp b/sd/qa/unit/data/odp/tdf48735.odp Binary files differnew file mode 100644 index 000000000000..9a1593a0db01 --- /dev/null +++ b/sd/qa/unit/data/odp/tdf48735.odp diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index d462fd3220b2..b414497e75be 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -140,6 +140,7 @@ public: void testTdf114848(); void testTdf68759(); void testTdf127901(); + void testTdf48735(); void testTdf90626(); void testTdf107608(); void testTdf111786(); @@ -249,6 +250,7 @@ public: CPPUNIT_TEST(testTdf114848); CPPUNIT_TEST(testTdf68759); CPPUNIT_TEST(testTdf127901); + CPPUNIT_TEST(testTdf48735); CPPUNIT_TEST(testTdf90626); CPPUNIT_TEST(testTdf107608); CPPUNIT_TEST(testTdf111786); @@ -1668,6 +1670,20 @@ void SdOOXMLExportTest2::testTdf127901() } +void SdOOXMLExportTest2::testTdf48735() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/odp/tdf48735.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocPtr pXmlDocContent1 = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "b", "23627"); + assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "l", "23627"); + assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "r", "23627"); + assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "t", "18842"); +} + void SdOOXMLExportTest2::testTdf90626() { ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/odp/tdf90626.odp"), ODP); |