Kaydet (Commit) f10d5eb1 authored tarafından Szymon Kłos's avatar Szymon Kłos

tdf#112334 unit test

Change-Id: Ie041595ba604d4563d7ff356eee18ff3e50fef41
Reviewed-on: https://gerrit.libreoffice.org/42628Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
Tested-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst 632edfab
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment