[Libreoffice-commits] core.git: sd/qa

Gülşah Köse (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 17 10:58:28 UTC 2021


 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.kose at collabora.com>
AuthorDate: Wed Feb 17 09:54:18 2021 +0300
Commit:     Gülşah Köse <gulsah.kose at 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.kose at 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();


More information about the Libreoffice-commits mailing list