[Libreoffice-commits] core.git: sw/qa

László Németh nemeth at numbertext.org
Fri May 25 06:42:04 UTC 2018


 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 <nemeth at 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 <ci at libreoffice.org>
    Reviewed-by: László Németh <nemeth at 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");


More information about the Libreoffice-commits mailing list