diff options
author | László Németh <nemeth@numbertext.org> | 2018-05-24 18:40:37 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2018-05-25 08:41:42 +0200 |
commit | 8628b4aeabd83b98edac5d537cd3901d22cf0c54 (patch) | |
tree | 148465c9c92fe9f327e55fff5f8f8ea140702447 | |
parent | e7cefdfc83ce17f11ea6277f579a4d8434a97ce4 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx | bin | 0 -> 8844 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/text_number_list.docx | bin | 0 -> 8966 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx | bin | 0 -> 8907 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 21 |
4 files changed, 21 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx b/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx Binary files differnew file mode 100644 index 000000000000..9a1efd7c69d2 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/text_cardinal_list.docx diff --git a/sw/qa/extras/ooxmlexport/data/text_number_list.docx b/sw/qa/extras/ooxmlexport/data/text_number_list.docx Binary files differnew file mode 100644 index 000000000000..674c4e797c0b --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/text_number_list.docx diff --git a/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx b/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx Binary files differnew file mode 100644 index 000000000000..bb5b4f520ef9 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/text_ordinal_list.docx 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"); |