diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-10-06 16:04:25 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-11-01 07:22:27 +0100 |
commit | ea524432686ca8779c7aba0144d8a72e1b03fa83 (patch) | |
tree | 28f1b4ac8c4d6fe3ba1385801befe3b1bda43982 /sd/qa/unit | |
parent | d4a84bf09c42faa7e0954477834cd4c4e83248f5 (diff) |
SmartArt: export text rotation in the PPTX
Change-Id: I74bfc172fe7434d14de468ecfd3412636e53780c
Reviewed-on: https://gerrit.libreoffice.org/43202
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 3cbb6e73ecbff5d83be817c0dab680c5d925c6fa)
Reviewed-on: https://gerrit.libreoffice.org/43984
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sd/qa/unit')
-rwxr-xr-x | sd/qa/unit/data/pptx/smartart-rotation2.pptx | bin | 0 -> 43658 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/smartart-rotation2.pptx b/sd/qa/unit/data/pptx/smartart-rotation2.pptx Binary files differnew file mode 100755 index 000000000000..e1c4493a7407 --- /dev/null +++ b/sd/qa/unit/data/pptx/smartart-rotation2.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index f2e36afb68a7..6f3897ec9ecc 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -119,6 +119,7 @@ public: void testTdf112647(); void testTdf112086(); void testTdf104788(); + void testSmartartRotation2(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -159,6 +160,7 @@ public: CPPUNIT_TEST(testTdf112647); CPPUNIT_TEST(testTdf112086); CPPUNIT_TEST(testTdf104788); + CPPUNIT_TEST(testSmartartRotation2); CPPUNIT_TEST_SUITE_END(); @@ -1038,6 +1040,17 @@ void SdOOXMLExportTest2::testTdf104788() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testSmartartRotation2() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/smartart-rotation2.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:grpSp/p:sp[3]/p:txBody/a:bodyPr", "rot", "10800000"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |