diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-05 16:57:11 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-05 18:24:53 +0100 |
commit | 94df9426f557e49c8241fb2f5351a8d4ee801af6 (patch) | |
tree | 677f1e4e6dfdb7cc71a8699defd292a0b05616fb /sd | |
parent | 371a91aaae0500f60f73968ff90a3d61e21b6d1d (diff) |
tdf#111785: sd_export_tests-ooxml2: Add unittest
Change-Id: I70bcc1855fc33ee3e6254ad620502bb4e72409d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124767
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/odp/tdf111785.odp | bin | 0 -> 11819 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/tdf111785.odp b/sd/qa/unit/data/odp/tdf111785.odp Binary files differnew file mode 100644 index 000000000000..fdb704e4c9fa --- /dev/null +++ b/sd/qa/unit/data/odp/tdf111785.odp diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index b7994dc0d598..88b305903da4 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -147,6 +147,7 @@ public: void testGroupsRotatedPosition(); void testAccentColor(); void testThemeColors(); + void testTdf111785(); void testTdf118825(); void testTextColumns_tdf140852(); void testTextColumns_3columns(); @@ -212,6 +213,7 @@ public: CPPUNIT_TEST(testGroupsRotatedPosition); CPPUNIT_TEST(testAccentColor); CPPUNIT_TEST(testThemeColors); + CPPUNIT_TEST(testTdf111785); CPPUNIT_TEST(testTdf118825); CPPUNIT_TEST(testTextColumns_tdf140852); CPPUNIT_TEST(testTextColumns_3columns); @@ -1620,6 +1622,20 @@ void SdOOXMLExportTest2::testThemeColors() assertXPath(pXmlDocTheme2, "/a:theme/a:themeElements/a:clrScheme/a:accent3/a:srgbClr", "val", "a5a5a5"); } +void SdOOXMLExportTest2::testTdf111785() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/odp/tdf111785.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocUniquePtr pXmlDocRels = parseExport(tempFile, "ppt/slides/slide1.xml"); + + // Without the fix in place, this test would have failed with + // - Expected: ed1c24 + // - Actual : ffffff + assertXPath(pXmlDocRels, "/p:sld/p:cSld/p:spTree/p:sp[1]/p:spPr/a:pattFill/a:bgClr/a:srgbClr", "val", "ed1c24"); +} void SdOOXMLExportTest2::testTdf118825() { |