diff options
author | Mark Hung <marklh9@gmail.com> | 2018-08-22 01:22:31 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-08-22 12:42:53 +0200 |
commit | dc96b95f4a2c732f678af002bf53765ba3a0a21e (patch) | |
tree | 1544a71008be1526fd38d1fadbea8caf5df82e9a /sd/qa/unit | |
parent | 969e2dd3575bd13813318a4f30e5b06060f3dce3 (diff) |
tdf#119118 convert tmAbs value to second.
setInterval() of IterateContainer actually need second instead
of percentage of the duration, we just need to convert tmAbs
in millisecond to second to make iterate interval correct.
Change-Id: I1dfc3c64187eb5b7fd8f0b6a91f41dc55466b58b
Reviewed-on: https://gerrit.libreoffice.org/59412
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sd/qa/unit')
-rwxr-xr-x | sd/qa/unit/data/pptx/tdf119118.pptx | bin | 0 -> 31815 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf119118.pptx b/sd/qa/unit/data/pptx/tdf119118.pptx Binary files differnew file mode 100755 index 000000000000..8eba153282d0 --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf119118.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index c1e92df177aa..fdd65130a0b4 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -192,6 +192,7 @@ public: void testTdf118836(); void testTdf116350TextEffects(); void testTdf118825(); + void testTdf119118(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -267,6 +268,7 @@ public: CPPUNIT_TEST(testTdf118836); CPPUNIT_TEST(testTdf116350TextEffects); CPPUNIT_TEST(testTdf118825); + CPPUNIT_TEST(testTdf119118); CPPUNIT_TEST_SUITE_END(); @@ -1967,6 +1969,17 @@ void SdOOXMLExportTest2::testTdf118825() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testTdf119118() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc( "sd/qa/unit/data/pptx/tdf119118.pptx" ), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "//p:iterate", "type", "lt"); + assertXPath(pXmlDocContent, "//p:tmAbs", "val", "200"); + xDocShRef->DoClose(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |