mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Revert "Update date localization (#181685)"
This reverts commit 1c1ba3a83902b76d7a9eac233c69cf8a2aa0f8b6.
This commit is contained in:
parent
98977409b2
commit
17281602df
File diff suppressed because it is too large
Load Diff
@ -33,7 +33,7 @@ void main() {
|
||||
'textDirection': TextDirection.ltr,
|
||||
'expectedDaysOfWeek': <String>['В', 'П', 'В', 'С', 'Ч', 'П', 'С'],
|
||||
'expectedDaysOfMonth': List<String>.generate(30, (int i) => '${i + 1}'),
|
||||
'expectedMonthYearHeader': 'сентябрь 2017\u202fг.',
|
||||
'expectedMonthYearHeader': 'сентябрь 2017 г.',
|
||||
},
|
||||
const Locale('ro', 'RO'): <String, dynamic>{
|
||||
'textDirection': TextDirection.ltr,
|
||||
@ -46,7 +46,7 @@ void main() {
|
||||
'textDirection': TextDirection.rtl,
|
||||
'expectedDaysOfWeek': <String>['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
|
||||
'expectedDaysOfMonth': List<String>.generate(30, (int i) => arabicNumbers.format(i + 1)),
|
||||
'expectedMonthYearHeader': 'سبتمبر 2017',
|
||||
'expectedMonthYearHeader': 'سبتمبر ٢٠١٧',
|
||||
},
|
||||
};
|
||||
|
||||
@ -69,6 +69,7 @@ void main() {
|
||||
locale: locale,
|
||||
textDirection: textDirection,
|
||||
);
|
||||
|
||||
expect(find.text(expectedMonthYearHeader), findsOneWidget);
|
||||
|
||||
for (final dayOfWeek in expectedDaysOfWeek) {
|
||||
@ -421,7 +422,7 @@ Future<void> _pumpBoilerplate(
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
home: Directionality(
|
||||
textDirection: textDirection,
|
||||
textDirection: TextDirection.ltr,
|
||||
child: Localizations(
|
||||
locale: locale,
|
||||
delegates: GlobalMaterialLocalizations.delegates,
|
||||
|
||||
@ -203,7 +203,7 @@ void main() {
|
||||
expect(localizations.formatFullDate(DateTime(2015, 7, 23)), 'Thursday, July 23, 2015');
|
||||
|
||||
localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en', 'GB'));
|
||||
expect(localizations.formatMediumDate(DateTime(2015, 7, 23)), 'Thu 23 Jul');
|
||||
expect(localizations.formatMediumDate(DateTime(2015, 7, 23)), 'Thu, 23 Jul');
|
||||
expect(localizations.formatFullDate(DateTime(2015, 7, 23)), 'Thursday, 23 July 2015');
|
||||
|
||||
localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('es'));
|
||||
@ -213,11 +213,6 @@ void main() {
|
||||
localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('de'));
|
||||
expect(localizations.formatMediumDate(DateTime(2015, 7, 23)), 'Do., 23. Juli');
|
||||
expect(localizations.formatFullDate(DateTime(2015, 7, 23)), 'Donnerstag, 23. Juli 2015');
|
||||
|
||||
localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('ru'));
|
||||
expect(localizations.formatMediumDate(DateTime(2015, 7, 23)), 'чт, 23 июл.');
|
||||
// The space before 'г.' is a narrow no-break space (U+202F).
|
||||
expect(localizations.formatFullDate(DateTime(2015, 7, 23)), 'четверг, 23 июля 2015\u202fг.');
|
||||
});
|
||||
|
||||
testWidgets('Chinese resolution', (WidgetTester tester) async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user