diff options
author | Mark Hung <marklh9@gmail.com> | 2018-07-14 10:01:08 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-07-18 02:26:34 +0200 |
commit | daafe79c55cd53decbeac2367f298d79371dcf3d (patch) | |
tree | 501c3f34ff1e5135efa9b934ca1eea4617bd8496 /sd | |
parent | 7ba295853669f7c333ba22e8284e9732091c67fa (diff) |
tdf#113822 convert animation value in SetTimeNodeContext.
Convert 'to' value of SetTimeNodeContext based on attribute name
and move conversion code in its destructor to convertAnimationValue.
Value conversion in AnimVariantContext is also included in
convertAnimationValue and is removed together.
Change-Id: I5dc693a1bbc7df57f7506e7704f9cd4693bf2056
Reviewed-on: https://gerrit.libreoffice.org/57412
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf113822underline.pptx | bin | 0 -> 34449 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests.cxx | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf113822underline.pptx b/sd/qa/unit/data/pptx/tdf113822underline.pptx Binary files differnew file mode 100644 index 000000000000..2d0d076544da --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf113822underline.pptx diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index 0394b0ab92de..7ac6fc01404d 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -99,6 +99,7 @@ public: void testTextRotation(); void testTdf115394PPT(); void testBulletsAsImage(); + void testTdf113822(); CPPUNIT_TEST_SUITE(SdExportTest); @@ -123,6 +124,7 @@ public: CPPUNIT_TEST(testTextRotation); CPPUNIT_TEST(testTdf115394PPT); CPPUNIT_TEST(testBulletsAsImage); + CPPUNIT_TEST(testTdf113822); CPPUNIT_TEST_SUITE_END(); @@ -1065,6 +1067,20 @@ void SdExportTest::testBulletsAsImage() } } +void SdExportTest::testTdf113822() +{ + utl::TempFile tempFile; + sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf113822underline.pptx"), PPTX); + + xDocShRef = saveAndReload(xDocShRef.get(), ODP, &tempFile); + + xmlDocPtr pXmlDoc = parseExport(tempFile, "content.xml"); + assertXPath(pXmlDoc, "//anim:set[1]", "to", "solid"); + + xDocShRef->DoClose(); +} + + CPPUNIT_TEST_SUITE_REGISTRATION(SdExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); |