diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-25 10:56:34 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-25 14:45:26 +0100 |
commit | ec7ea311671928d0b66989aaa0542be902d85c3c (patch) | |
tree | 2f8d533916c2d4734cf44008928d14fe2569b898 /sw/qa/extras | |
parent | 506036ba3f98db5fd83abaf494d3a9ab85561c18 (diff) |
tdf#138780: sw_ooxmlexport12: Add unittest
Change-Id: I439abf01e753d64fa61bf1fc776d579e1e006d73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109893
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf138780.odt | bin | 0 -> 9383 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport12.cxx | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf138780.odt b/sw/qa/extras/ooxmlexport/data/tdf138780.odt Binary files differnew file mode 100644 index 000000000000..3e7a96a0297c --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf138780.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx index b9cf6209afe6..12db7016ecb6 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx @@ -911,6 +911,22 @@ DECLARE_OOXMLEXPORT_TEST(testTdf117137, "tdf117137.docx") CPPUNIT_ASSERT(xPara3->getPropertyValue("NumberingRules").hasValue()); } +DECLARE_OOXMLEXPORT_TEST(testTdf138780, "tdf138780.odt") +{ + // 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()); +} + DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf134618, "tdf134618.doc") { xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml"); |