From 665d9e6e86fad0a2ff7e2f276531d6973ec66cc0 Mon Sep 17 00:00:00 2001 From: n7484443 Date: Fri, 19 Jul 2024 08:23:05 +0900 Subject: [PATCH] chore: fix test name & add description of tests (#151959) https://github.com/flutter/flutter/pull/151364 I realized I made a mistake with my PR. There are two missed description about test, one wrong test name. So I correted that tests. --- .../test/cupertino/translations_test.dart | 1 + .../flutter_localizations/test/material/translations_test.dart | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/flutter_localizations/test/cupertino/translations_test.dart b/packages/flutter_localizations/test/cupertino/translations_test.dart index 991cdd9192..f6ee9e99fc 100644 --- a/packages/flutter_localizations/test/cupertino/translations_test.dart +++ b/packages/flutter_localizations/test/cupertino/translations_test.dart @@ -240,6 +240,7 @@ void main() { expect(localizations.lookUpButtonLabel, '查询'); }); + // Regression test for https://github.com/flutter/flutter/pull/151364 testWidgets('ko-KR translation for cut, copy, paste label in ButtonLabel', (WidgetTester tester) async { const Locale locale = Locale('ko'); expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue); diff --git a/packages/flutter_localizations/test/material/translations_test.dart b/packages/flutter_localizations/test/material/translations_test.dart index 9d876ee58b..c75ab67833 100644 --- a/packages/flutter_localizations/test/material/translations_test.dart +++ b/packages/flutter_localizations/test/material/translations_test.dart @@ -560,7 +560,8 @@ void main() { expect(localizations.lookUpButtonLabel, '查询'); }); - testWidgets('zh-CN translation for look up label', (WidgetTester tester) async { + // Regression test for https://github.com/flutter/flutter/pull/151364 + testWidgets('ko-KR translation for cut, copy, paste label in ButtonLabel', (WidgetTester tester) async { const Locale locale = Locale('ko'); expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue); final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);