diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-13 19:01:50 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-14 11:20:50 +0200 |
commit | 66132b519f406acc8838934499311b0a1e0fc4c1 (patch) | |
tree | acdb544e266f9614c2b769954353845cb7e55c3b /sd | |
parent | f580114e9da5b96a2ba61bbf527e33ab127b2a8d (diff) |
tdf#133502: sd_export_ooxml2: Add unittest
Change-Id: Id1b35adb20950758eff47f43200a6f5feb6f24e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102591
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/odp/tdf133502.odp | bin | 0 -> 13204 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf133502.odp b/sd/qa/unit/data/odp/tdf133502.odp Binary files differnew file mode 100644 index 000000000000..de72673049a9 --- /dev/null +++ b/sd/qa/unit/data/odp/tdf133502.odp diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index a46edd8c72f3..899457e11e4a 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -107,6 +107,7 @@ public: void testTdf99224(); void testTdf92076(); void testTdf59046(); + void testTdf133502(); void testTdf105739(); void testPageBitmapWithTransparency(); void testPptmContentType(); @@ -225,6 +226,7 @@ public: CPPUNIT_TEST(testTdf99224); CPPUNIT_TEST(testTdf92076); CPPUNIT_TEST(testTdf59046); + CPPUNIT_TEST(testTdf133502); CPPUNIT_TEST(testTdf105739); CPPUNIT_TEST(testPageBitmapWithTransparency); CPPUNIT_TEST(testPptmContentType); @@ -1009,6 +1011,21 @@ void SdOOXMLExportTest2::testTdf59046() assertXPath(pXmlDocRels, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path", 1); } +void SdOOXMLExportTest2::testTdf133502() +{ + sd::DrawDocShellRef xShell = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf133502.odp"), ODP); + utl::TempFile tempFile; + xShell = saveAndReload(xShell.get(), PPTX, &tempFile); + xShell->DoClose(); + xmlDocUniquePtr pXmlDocRels = parseExport(tempFile, "ppt/comments/comment1.xml"); + + assertXPathContent(pXmlDocRels, "/p:cmLst/p:cm/p:text", "Test for creator-initials"); + + // Without the fix in place, the comment position would have been 0,0 + assertXPath(pXmlDocRels, "/p:cmLst/p:cm/p:pos", "x", "2032"); + assertXPath(pXmlDocRels, "/p:cmLst/p:cm/p:pos", "y", "1029"); +} + void SdOOXMLExportTest2::testTdf105739() { // Gradient was lost during saving to ODP |