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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 7 13:57:23 UTC 2018


 sw/qa/extras/ooxmlexport/data/tdf117137.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport12.cxx   |   16 ++++++++++++++++
 2 files changed, 16 insertions(+)

New commits:
commit edbb7a39c7a954f8c773e6bdf136e65b70299dd5
Author:     Miklos Vajna <vmiklos at collabora.co.uk>
AuthorDate: Wed Nov 7 10:39:47 2018 +0100
Commit:     Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Nov 7 14:55:44 2018 +0100

    tdf#117137 sw: add testcase for this DOCX import bug
    
    Fails with commit ac27f4e7abf5339f71d4f5f3fc09a13b25669fe4 (tdf#117137:
    DOCX import: don't try to set grab-bag as UNO prop, 2018-04-21)
    reverted.
    
    Change-Id: Ice5f9831234ba7ba72a730ea6e33648a339a2a88
    Reviewed-on: https://gerrit.libreoffice.org/62998
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins

diff --git a/sw/qa/extras/ooxmlexport/data/tdf117137.docx b/sw/qa/extras/ooxmlexport/data/tdf117137.docx
new file mode 100644
index 000000000000..1c2cc92b20f6
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf117137.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
index 7c24fa3751fc..8a98742a0532 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
@@ -845,6 +845,22 @@ DECLARE_OOXMLEXPORT_TEST(testTdf105444, "tdf105444.docx")
     assertXPath(pXmlComm, "/w:comments/w:comment/w:p", 1);
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf117137, "tdf117137.docx")
+{
+    // Paragraphs were not part of a numbering anymore after roundtrip.
+    uno::Reference<beans::XPropertySet> xPara1(getParagraph(1), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xPara1.is());
+    CPPUNIT_ASSERT(xPara1->getPropertyValue("NumberingRules").hasValue());
+
+    uno::Reference<beans::XPropertySet> xPara2(getParagraph(2), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xPara2.is());
+    CPPUNIT_ASSERT(xPara2->getPropertyValue("NumberingRules").hasValue());
+
+    uno::Reference<beans::XPropertySet> xPara3(getParagraph(3), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xPara3.is());
+    CPPUNIT_ASSERT(xPara3->getPropertyValue("NumberingRules").hasValue());
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list