summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/time
diff options
context:
space:
mode:
authorSoroush Rabiei <soroush@ametisco.ir>2019-08-08 20:35:13 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2019-08-22 10:10:02 +0000
commit702664571252e4f5705e39a8258fc81a3fbf37d4 (patch)
tree01abab3715dfe2f5193dc56802c1b0d50870cc0d /tests/auto/corelib/time
parenta8cc4cea92bfe4c251458722cbd2e60c49024a2d (diff)
Add support for the Islamic Civil calendar
This has its own locale data, extracted from CLDR. This data may potentially be shared with other variants on the Islamic calendar, so is handled by a separate base-class, QHijriCalendar, on which such variants may base their implementations. [ChangeLog][QtCore][QCalendar] Added support for the Islamic Civil calendar, controlled by feature islamiccivilcalendar, with locale data that can be shared with other implementations, controlled by feature hijricalendar. Fixes: QTBUG-56675 Change-Id: Idf32d3da7034baa8ec5e66ef847e59a8a2f31cbd Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/time')
-rw-r--r--tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp b/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp
index 77f92427a2..5cfdb6daf4 100644
--- a/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp
+++ b/tests/auto/corelib/time/qcalendar/tst_qcalendar.cpp
@@ -179,6 +179,10 @@ void tst_QCalendar::specific_data()
// Jalali year 1355 started on Gregorian 1976-3-21:
ADDROW(Jalali, 1355, 1, 1, 1976, 3, 21);
#endif // jalali
+#if QT_CONFIG(islamiccivilcalendar)
+ // TODO: confirm this is correct
+ ADDROW(IslamicCivil, 1, 1, 1, 622, 7, 19);
+#endif
#undef ADDROW
}