summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport/odfexport.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2020-08-02 10:41:25 +0200
committerLászló Németh <nemeth@numbertext.org>2020-08-09 12:37:13 +0200
commitf4ca7ea13102dfbc0a62e925b6fe4dbe6fd0bf99 (patch)
tree42436fce18ae269ab1af801fc94aa5324e7b804b /sw/qa/extras/odfexport/odfexport.cxx
parentacfd9e9ca2dfd76536c072e21c65cb3efc6aac80 (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/qa/extras/odfexport/odfexport.cxx')
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx14
1 files changed, 14 insertions, 0 deletions
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());