[Libreoffice-commits] core.git: sd/qa
Szymon Kłos
szymon.klos at collabora.com
Fri Sep 22 09:44:19 UTC 2017
sd/qa/unit/data/pptx/tdf112334.pptx |binary
sd/qa/unit/export-tests-ooxml2.cxx | 15 +++++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit f10d5eb1435952052447fcb09dc1ece25202a48a
Author: Szymon Kłos <szymon.klos at collabora.com>
Date: Fri Sep 22 11:13:07 2017 +0200
tdf#112334 unit test
Change-Id: Ie041595ba604d4563d7ff356eee18ff3e50fef41
Reviewed-on: https://gerrit.libreoffice.org/42628
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/sd/qa/unit/data/pptx/tdf112334.pptx b/sd/qa/unit/data/pptx/tdf112334.pptx
new file mode 100755
index 000000000000..1e57d41caaef
Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf112334.pptx differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index 0135e52ab9db..9861726386e0 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -111,6 +111,7 @@ public:
void testTdf112333();
void testTdf112552();
void testTdf112557();
+ void testTdf112334();
CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
@@ -149,6 +150,7 @@ public:
CPPUNIT_TEST(testTdf112333);
CPPUNIT_TEST(testTdf112552);
CPPUNIT_TEST(testTdf112557);
+ CPPUNIT_TEST(testTdf112334);
CPPUNIT_TEST_SUITE_END();
@@ -1129,6 +1131,19 @@ void SdOOXMLExportTest2::testTdf112557()
xDocShRef->DoClose();
}
+void SdOOXMLExportTest2::testTdf112334()
+{
+ ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf112334.pptx"), PPTX);
+ utl::TempFile tempFile;
+ xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+ xDocShRef->DoClose();
+
+ xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml");
+
+ OUString sAttributeName = getXPathContent(pXmlDocContent, "/p:sld/p:timing/p:tnLst/p:par/p:cTn/p:childTnLst/p:seq/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:par/p:cTn/p:childTnLst/p:animClr[1]/p:cBhvr/p:attrNameLst/p:attrName");
+ CPPUNIT_ASSERT_EQUAL(OUString("style.color"), sAttributeName);
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2);
CPPUNIT_PLUGIN_IMPLEMENT();
More information about the Libreoffice-commits
mailing list