Updated flutter_localizations (#13229)
This commit is contained in:
@@ -88,7 +88,7 @@ void main() {
|
||||
// Spanish Bolivia locale, falls back to just 'es'
|
||||
await tester.binding.setLocale('es', 'bo');
|
||||
await tester.pump();
|
||||
expect(tester.widget<Text>(find.byKey(textKey)).data, 'Espalda');
|
||||
expect(tester.widget<Text>(find.byKey(textKey)).data, 'Atrás');
|
||||
});
|
||||
|
||||
testWidgets('Localizations.override widget tracks parent\'s locale', (WidgetTester tester) async {
|
||||
|
||||
@@ -81,8 +81,8 @@ void main() {
|
||||
|
||||
localizations = new GlobalMaterialLocalizations(const Locale('es', ''));
|
||||
expect(localizations.selectedRowCountTitle(0), 'No se han seleccionado elementos');
|
||||
expect(localizations.selectedRowCountTitle(1), '1 artículo seleccionado');
|
||||
expect(localizations.selectedRowCountTitle(2), '2 artículos seleccionados');
|
||||
expect(localizations.selectedRowCountTitle(123456789), '123.456.789 artículos seleccionados');
|
||||
expect(localizations.selectedRowCountTitle(1), '1 elemento seleccionado');
|
||||
expect(localizations.selectedRowCountTitle(2), '2 elementos seleccionados');
|
||||
expect(localizations.selectedRowCountTitle(123456789), '123.456.789 elementos seleccionados');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user