diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-08 15:26:32 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-08 21:56:53 +0200 |
commit | 7e66a473fa147546e5fb96c95a86ae5ec6f45fa5 (patch) | |
tree | 139d0f9dfa8a3431817d03e0c6cd4e1e42a44c16 /sw | |
parent | 1a90b1aa64866950cf9ad7032a8240b0c072e671 (diff) |
tdf#134264: sw: Add unittest
Change-Id: I373b2549a067452056f649213c32d5983212580c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98378
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ww8export/data/tdf134264.docx | bin | 0 -> 15412 bytes | |||
-rw-r--r-- | sw/qa/extras/ww8export/ww8export3.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/tdf134264.docx b/sw/qa/extras/ww8export/data/tdf134264.docx Binary files differnew file mode 100644 index 000000000000..5acb4cf4e6ce --- /dev/null +++ b/sw/qa/extras/ww8export/data/tdf134264.docx 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); |