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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 12 21:28:38 UTC 2020


 sd/qa/unit/data/odp/tdf48735.odp   |binary
 sd/qa/unit/export-tests-ooxml2.cxx |   16 ++++++++++++++++
 2 files changed, 16 insertions(+)

New commits:
commit 04f5e991178cdc459d34b6d6406603f180334425
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Sun Apr 12 21:58:07 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Sun Apr 12 23:28:06 2020 +0200

    tdf#48735: Add unittest
    
    Change-Id: I9114ff79c808a552edf06be534e10f2106dfe171
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92092
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sd/qa/unit/data/odp/tdf48735.odp b/sd/qa/unit/data/odp/tdf48735.odp
new file mode 100644
index 000000000000..9a1593a0db01
Binary files /dev/null and b/sd/qa/unit/data/odp/tdf48735.odp differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index d462fd3220b2..b414497e75be 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -140,6 +140,7 @@ public:
     void testTdf114848();
     void testTdf68759();
     void testTdf127901();
+    void testTdf48735();
     void testTdf90626();
     void testTdf107608();
     void testTdf111786();
@@ -249,6 +250,7 @@ public:
     CPPUNIT_TEST(testTdf114848);
     CPPUNIT_TEST(testTdf68759);
     CPPUNIT_TEST(testTdf127901);
+    CPPUNIT_TEST(testTdf48735);
     CPPUNIT_TEST(testTdf90626);
     CPPUNIT_TEST(testTdf107608);
     CPPUNIT_TEST(testTdf111786);
@@ -1668,6 +1670,20 @@ void SdOOXMLExportTest2::testTdf127901()
 
 }
 
+void SdOOXMLExportTest2::testTdf48735()
+{
+    ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/odp/tdf48735.odp"), ODP);
+    utl::TempFile tempFile;
+    xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+    xDocShRef->DoClose();
+
+    xmlDocPtr pXmlDocContent1 = parseExport(tempFile, "ppt/slides/slide1.xml");
+    assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "b", "23627");
+    assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "l", "23627");
+    assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "r", "23627");
+    assertXPath(pXmlDocContent1, "/p:sld/p:cSld/p:spTree/p:pic/p:blipFill/a:srcRect", "t", "18842");
+}
+
 void SdOOXMLExportTest2::testTdf90626()
 {
     ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/odp/tdf90626.odp"), ODP);


More information about the Libreoffice-commits mailing list