appflowy-editor/test/l10n/l10n_test.dart

19 lines
549 B
Dart
Raw Normal View History

2022-09-16 10:26:17 +08:00
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter_test/flutter_test.dart';
2023-05-03 14:50:41 +08:00
import '../new/infra/testable_editor.dart';
2022-09-16 10:26:17 +08:00
void main() async {
setUpAll(() {
TestWidgetsFlutterBinding.ensureInitialized();
});
group('l10n.dart', () {
for (final locale
in AppFlowyEditorLocalizations.delegate.supportedLocales) {
testWidgets('test localization', (tester) async {
2023-05-03 14:50:41 +08:00
final editor = tester.editor..addEmptyParagraph();
2022-09-16 10:26:17 +08:00
await editor.startTesting(locale: locale);
});
}
});
}