Unverified Commit 3449edf2 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Verify that date/number translations exist for all supported languages (#23692)

parent 7270f284
......@@ -74,6 +74,17 @@ void main() {
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains(r'$tabCount')));
expect(() => localizations.tabLabel(tabIndex: 0, tabCount: 5), throwsAssertionError);
expect(() => localizations.tabLabel(tabIndex: 2, tabCount: 0), throwsAssertionError);
expect(localizations.formatHour(const TimeOfDay(hour: 10, minute: 0)), isNotNull);
expect(localizations.formatMinute(const TimeOfDay(hour: 10, minute: 0)), isNotNull);
expect(localizations.formatYear(DateTime(2018, 8, 1)), isNotNull);
expect(localizations.formatMediumDate(DateTime(2018, 8, 1)), isNotNull);
expect(localizations.formatFullDate(DateTime(2018, 8, 1)), isNotNull);
expect(localizations.formatMonthYear(DateTime(2018, 8, 1)), isNotNull);
expect(localizations.narrowWeekdays, isNotNull);
expect(localizations.narrowWeekdays.length, 7);
expect(localizations.formatDecimal(123), isNotNull);
expect(localizations.formatTimeOfDay(const TimeOfDay(hour: 10, minute: 0)), isNotNull);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment