sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx |binary sw/qa/extras/ooxmlexport/data/text_number_list.docx |binary sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx |binary sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 21 ++++++++++++++++++ 4 files changed, 21 insertions(+)
New commits: commit 8628b4aeabd83b98edac5d537cd3901d22cf0c54 Author: László Németh <nem...@numbertext.org> Date: Thu May 24 18:40:37 2018 +0200 tdf#117171 unit test for DOCX export/import of number names ie. ordinal, ordinalText and cardinalText DOCX numbering styles. DOCX export/import was added in commit 1501df419ea4d40358d705a281fd9662088ba51e. Change-Id: Ica2d63aab3d7c89392e0c72210e6018c288aaec6 Reviewed-on: https://gerrit.libreoffice.org/54776 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: László Németh <nem...@numbertext.org> diff --git a/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx b/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx new file mode 100644 index 000000000000..9a1efd7c69d2 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx differ diff --git a/sw/qa/extras/ooxmlexport/data/text_number_list.docx b/sw/qa/extras/ooxmlexport/data/text_number_list.docx new file mode 100644 index 000000000000..674c4e797c0b Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/text_number_list.docx differ diff --git a/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx b/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx new file mode 100644 index 000000000000..bb5b4f520ef9 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 0dc6ebe65b20..ca24b6420e5e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -668,6 +668,27 @@ DECLARE_OOXMLEXPORT_TEST(testOoxmlCjklist44, "cjklist44.docx") CPPUNIT_ASSERT_EQUAL(style::NumberingType::NUMBER_HANGUL_KO, numFormat); } +DECLARE_OOXMLEXPORT_TEST(testOoxmlTextNumberList, "text_number_list.docx") +{ + sal_Int16 numFormat; + CPPUNIT_ASSERT(CjkNumberedListTestHelper(numFormat)); + CPPUNIT_ASSERT_EQUAL(style::NumberingType::TEXT_NUMBER, numFormat); +} + +DECLARE_OOXMLEXPORT_TEST(testOoxmlTextCardinalList, "text_cardinal_list.docx") +{ + sal_Int16 numFormat; + CPPUNIT_ASSERT(CjkNumberedListTestHelper(numFormat)); + CPPUNIT_ASSERT_EQUAL(style::NumberingType::TEXT_CARDINAL, numFormat); +} + +DECLARE_OOXMLEXPORT_TEST(testOoxmlTextOrdinalList, "text_ordinal_list.docx") +{ + sal_Int16 numFormat; + CPPUNIT_ASSERT(CjkNumberedListTestHelper(numFormat)); + CPPUNIT_ASSERT_EQUAL(style::NumberingType::TEXT_ORDINAL, numFormat); +} + DECLARE_OOXMLEXPORT_TEST(testOoxmlNumListZHTW, "numlist-zhtw.odt") { xmlDocPtr pXmlDoc = parseExport("word/numbering.xml"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits