summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2021-02-17 09:54:18 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2021-02-17 11:57:49 +0100
commit185ed8d270da6d41b1860b7afd74351098da14a0 (patch)
tree656fd326736fa189c0aba517f5087ddc399a36c8
parent5692bafd2f43c25e9ef52f3b1eda1ca3d8556bf1 (diff)
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@collabora.com>
-rw-r--r--sd/qa/unit/data/pptx/tdf128213-shaperot.pptxbin0 -> 16937 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml2.cxx17
2 files changed, 17 insertions, 0 deletions
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
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf128213-shaperot.pptx
Binary files 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();