sd/qa/unit/data/pptx/tdf128213-shaperot.pptx |binary
 sd/qa/unit/export-tests-ooxml2.cxx           |   17 +++++++++++++++++
 2 files changed, 17 insertions(+)

New commits:
commit 185ed8d270da6d41b1860b7afd74351098da14a0
Author:     Gülşah Köse <gulsah.k...@collabora.com>
AuthorDate: Wed Feb 17 09:54:18 2021 +0300
Commit:     Gülşah Köse <gulsah.k...@collabora.com>
CommitDate: Wed Feb 17 11:57:49 2021 +0100

    tdf#128213 Add unit test for text camera z rotation.
    
    Change-Id: I50dab62ba1013d4ae17684edde620f9c94c5ec47
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111028
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com>

diff --git a/sd/qa/unit/data/pptx/tdf128213-shaperot.pptx 
b/sd/qa/unit/data/pptx/tdf128213-shaperot.pptx
new file mode 100644
index 000000000000..4e834bb7c563
Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf128213-shaperot.pptx differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx 
b/sd/qa/unit/export-tests-ooxml2.cxx
index faaf35f71347..9523d5718a46 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -207,6 +207,7 @@ public:
     void testShapeSoftEdgeEffect();
     void testShapeShadowBlurEffect();
     void testTdf119223();
+    void testTdf128213ShapeRot();
 
     CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
 
@@ -328,6 +329,7 @@ public:
     CPPUNIT_TEST(testShapeSoftEdgeEffect);
     CPPUNIT_TEST(testShapeShadowBlurEffect);
     CPPUNIT_TEST(testTdf119223);
+    CPPUNIT_TEST(testTdf128213ShapeRot);
 
     CPPUNIT_TEST_SUITE_END();
 
@@ -3084,6 +3086,21 @@ void SdOOXMLExportTest2::testTdf119223()
                 "//p:cNvPr[@name='SomeGroup']");
 }
 
+void SdOOXMLExportTest2::testTdf128213ShapeRot()
+{
+    auto xDocShRef
+            = 
loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/pptx/tdf128213-shaperot.pptx"),
 PPTX);
+    utl::TempFile tempFile;
+    xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+    xDocShRef->DoClose();
+
+    xmlDocUniquePtr pXmlDocRels = parseExport(tempFile, 
"ppt/slides/slide1.xml");
+
+    assertXPath(pXmlDocRels, 
"/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:bodyPr/a:scene3d");
+    assertXPath(pXmlDocRels, 
"/p:sld/p:cSld/p:spTree/p:sp/p:txBody/a:bodyPr/a:scene3d/a:camera/a:rot", 
"rev", "5400000");
+}
+
+
 CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to