diff options
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 |