[go: nahoru, domu]

Skip to content

Commit

Permalink
test: add test for korean, 'cut, copy, paste' button label
Browse files Browse the repository at this point in the history
  • Loading branch information
n7484443 committed Jul 14, 2024
1 parent f09db0d commit 11c73b3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,16 @@ void main() {
expect(localizations.lookUpButtonLabel, '查询');
});

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 CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
expect(localizations, isA<CupertinoLocalizationKo>());
expect(localizations.cutButtonLabel, '잘라내기');
expect(localizations.copyButtonLabel, '복사');
expect(localizations.pasteButtonLabel, '붙여넣기');
});

testWidgets('localizations.datePickerDayOfMonth uses the current locale for weekdays', (WidgetTester tester) async {
const Locale locale = Locale('zh');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,4 +559,14 @@ void main() {
expect(localizations, isA<MaterialLocalizationZh>());
expect(localizations.lookUpButtonLabel, '查询');
});

testWidgets('zh-CN translation for look up label', (WidgetTester tester) async {
const Locale locale = Locale('ko');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationKo>());
expect(localizations.cutButtonLabel, '잘라내기');
expect(localizations.copyButtonLabel, '복사');
expect(localizations.pasteButtonLabel, '붙여넣기');
});
}

0 comments on commit 11c73b3

Please sign in to comment.