summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-08-09 15:30:28 +0200
committerJan Holesovsky <kendy@collabora.com>2017-08-09 16:02:21 +0200
commit506bdf029379d63e79656c85df49e2c9cef0c16e (patch)
tree9b3fe5a33bda81cccb4ab5c5dc96858c9d7532e1 /sd
parentaf4602e558431bcdf51d0f15e7e400adcd142738 (diff)
tdf#111518 pptx: Unit test.
Change-Id: I618398680e1d2bfce78121afbf3d627ce805ebfb
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/pptx/tdf111518.pptxbin0 -> 30463 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml2.cxx17
2 files changed, 17 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf111518.pptx b/sd/qa/unit/data/pptx/tdf111518.pptx
new file mode 100644
index 000000000000..a0d77617f67a
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf111518.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index 848ea8f5d1a4..e94437e17a5a 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -100,6 +100,7 @@ public:
void testPageBitmapWithTransparency();
void testPptmContentType();
void testPptmVBAStream();
+ void testTdf111518();
CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
@@ -127,6 +128,7 @@ public:
CPPUNIT_TEST(testPageBitmapWithTransparency);
CPPUNIT_TEST(testPptmContentType);
CPPUNIT_TEST(testPptmVBAStream);
+ CPPUNIT_TEST(testTdf111518);
CPPUNIT_TEST_SUITE_END();
@@ -837,6 +839,21 @@ void SdOOXMLExportTest2::testPptmVBAStream()
xDocShRef->DoClose();
}
+void SdOOXMLExportTest2::testTdf111518()
+{
+ sd::DrawDocShellRef xShell = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/pptx/tdf111518.pptx"), PPTX);
+ utl::TempFile tempFile;
+ tempFile.EnableKillingFile(false);
+ xShell = saveAndReload(xShell.get(), PPTX, &tempFile);
+ xShell->DoClose();
+
+ xmlDocPtr pXmlDocRels = parseExport(tempFile, "ppt/slides/slide1.xml");
+ assertXPath(pXmlDocRels,
+ "/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:animMotion",
+ "path",
+ "M -3.54167E-6 -4.81481E-6 L 0.39037 -0.00069");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2);
CPPUNIT_PLUGIN_IMPLEMENT();