sw/qa/extras/ww8export/data/tdf134264.docx |binary
 sw/qa/extras/ww8export/ww8export3.cxx      |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit 7e66a473fa147546e5fb96c95a86ae5ec6f45fa5
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Jul 8 15:26:32 2020 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Jul 8 21:56:53 2020 +0200

    tdf#134264: sw: Add unittest
    
    Change-Id: I373b2549a067452056f649213c32d5983212580c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98378
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ww8export/data/tdf134264.docx 
b/sw/qa/extras/ww8export/data/tdf134264.docx
new file mode 100644
index 000000000000..5acb4cf4e6ce
Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf134264.docx differ
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx 
b/sw/qa/extras/ww8export/ww8export3.cxx
index f998ffe1d85a..5c1892ce5205 100644
--- a/sw/qa/extras/ww8export/ww8export3.cxx
+++ b/sw/qa/extras/ww8export/ww8export3.cxx
@@ -245,6 +245,14 @@ DECLARE_WW8EXPORT_TEST(testTdf79435_legacyInputFields, 
"tdf79435_legacyInputFiel
     CPPUNIT_ASSERT_EQUAL(OUString("date"), sTmp);
 }
 
+DECLARE_WW8EXPORT_TEST(testTdf134264, "tdf134264.docx")
+{
+    // Without the fix in place, ADDRESSBLOCK fields would have been lost 
after RT
+    CPPUNIT_ASSERT_EQUAL(OUString("MF"), getParagraph(1)->getString());
+    CPPUNIT_ASSERT_EQUAL(OUString("M19"), getParagraph(2)->getString());
+    CPPUNIT_ASSERT_EQUAL(OUString("1815"), getParagraph(3)->getString());
+}
+
 DECLARE_WW8EXPORT_TEST(testTdf120225_textControlCrossRef, 
"tdf120225_textControlCrossRef.doc")
 {
     uno::Reference<text::XTextDocument> xTextDocument(mxComponent, 
uno::UNO_QUERY);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to