[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sd/qa
GülÅah Köse (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 1 08:12:15 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 b7f0a97a43cc185db7eee935b41de9fd77d45b16
Author: Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Wed Feb 17 09:54:18 2021 +0300
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Mar 1 09:11:39 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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111563
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Miklos Vajna <vmiklos 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 a4040be04fbc..399bd4657861 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -187,6 +187,7 @@ public:
void testTdf119087();
void testTdf131554();
void testTdf132282();
+ void testTdf128213ShapeRot();
CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
@@ -292,6 +293,7 @@ public:
CPPUNIT_TEST(testTdf119087);
CPPUNIT_TEST(testTdf131554);
CPPUNIT_TEST(testTdf132282);
+ CPPUNIT_TEST(testTdf128213ShapeRot);
CPPUNIT_TEST_SUITE_END();
@@ -2736,6 +2738,21 @@ void SdOOXMLExportTest2::testTdf132282()
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(2604), xShape->getSize().Height);
}
+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();
+
+ xmlDocPtr 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