diff options
author | László Németh <nemeth@numbertext.org> | 2020-08-02 10:41:25 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-08-09 12:37:13 +0200 |
commit | f4ca7ea13102dfbc0a62e925b6fe4dbe6fd0bf99 (patch) | |
tree | 42436fce18ae269ab1af801fc94aa5324e7b804b /sw | |
parent | acfd9e9ca2dfd76536c072e21c65cb3efc6aac80 (diff) |
tdf#135573 sw: add Székely rovás (Old Hungarian) numerals
Change-Id: Ic309fc9b07186ce0b86ca54028d62e0fafd104fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99950
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfexport/data/rovas-numbering.odt | bin | 0 -> 8786 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/rovas-numbering.odt b/sw/qa/extras/odfexport/data/rovas-numbering.odt Binary files differnew file mode 100644 index 000000000000..72cb8895a95a --- /dev/null +++ b/sw/qa/extras/odfexport/data/rovas-numbering.odt diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 4f0a04cf69f8..f74980ebc51b 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -2537,6 +2537,20 @@ DECLARE_ODFEXPORT_TEST(testArabicZero5Numbering, "arabic-zero5-numbering.odt") aMap["NumberingType"].get<sal_uInt16>()); } +DECLARE_ODFEXPORT_TEST(testRovasNumbering, "rovas-numbering.odt") +{ + CPPUNIT_ASSERT_EQUAL(1, getPages()); + auto xNumberingRules + = getProperty<uno::Reference<container::XIndexAccess>>(getParagraph(1), "NumberingRules"); + comphelper::SequenceAsHashMap aMap(xNumberingRules->getByIndex(0)); + // Without the accompanying fix in place, this test would have failed with: + // - Expected: 68 + // - Actual : 4 + // i.e. numbering type was ARABIC, not SZEKELY_ROVAS. + CPPUNIT_ASSERT_EQUAL(static_cast<sal_uInt16>(style::NumberingType::SZEKELY_ROVAS), + aMap["NumberingType"].get<sal_uInt16>()); +} + DECLARE_ODFEXPORT_TEST(testPageContentBottom, "page-content-bottom.odt") { CPPUNIT_ASSERT_EQUAL(1, getShapes()); |