diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-29 18:22:49 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-10-03 20:16:39 +0200 |
commit | 42c9be63a309fa0d7506ada9cf759dbe023c4a0f (patch) | |
tree | 0526fd4429a421a7bcc2ca885f0c4f82e1bdfb53 /sd/qa | |
parent | 73251f38d97506fc41ded7fe1fc9c788317ca894 (diff) |
tdf#104788 write xshear & to attribute
Change-Id: I2cdaf18424b7f2e5b5e1fe81a9f504f36773eff3
Reviewed-on: https://gerrit.libreoffice.org/42948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sd/qa')
-rwxr-xr-x | sd/qa/unit/data/pptx/tdf104788.pptx | bin | 0 -> 82873 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf104788.pptx b/sd/qa/unit/data/pptx/tdf104788.pptx Binary files differnew file mode 100755 index 000000000000..c46fb3da50a9 --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf104788.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index fa28714b4f27..1ba4f1362d23 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -118,6 +118,7 @@ public: void testTdf112086(); void testTdf112647(); void testGroupRotation(); + void testTdf104788(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -161,6 +162,7 @@ public: CPPUNIT_TEST(testTdf112086); CPPUNIT_TEST(testTdf112647); CPPUNIT_TEST(testGroupRotation); + CPPUNIT_TEST(testTdf104788); CPPUNIT_TEST_SUITE_END(); @@ -1219,6 +1221,23 @@ void SdOOXMLExportTest2::testGroupRotation() assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:grpSp/p:sp[2]/p:spPr/a:xfrm", "rot", "20400000"); } +void SdOOXMLExportTest2::testTdf104788() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf104788.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide6.xml"); + + OUString sVal = getXPath(pXmlDocContent, "/p:sld/p:timing/p:tnLst/p:par/p:cTn/p:childTnLst/p:seq/p:cTn/p:childTnLst/p:par[2]/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:anim[2]", "to"); + CPPUNIT_ASSERT_EQUAL(OUString("-1.0"), sVal); + + OUString sAttributeName = getXPathContent(pXmlDocContent, "/p:sld/p:timing/p:tnLst/p:par/p:cTn/p:childTnLst/p:seq/p:cTn/p:childTnLst/p:par[2]/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:anim[2]/p:cBhvr/p:attrNameLst/p:attrName"); + CPPUNIT_ASSERT_EQUAL(OUString("xshear"), sAttributeName); + xDocShRef->DoClose(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |