chore: update l10n (#463)
This commit is contained in:
parent
f5b3ea87f5
commit
1944ab7a29
7 changed files with 641 additions and 60 deletions
|
|
@ -7,6 +7,9 @@ import 'package:network_image_mock/network_image_mock.dart';
|
|||
|
||||
void main() async {
|
||||
/// customize the action builder
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('customize the image block\'s menu', (tester) async {
|
||||
await mockNetworkImagesFor(() async {
|
||||
const widget = CustomActionBuilder();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ void main() async {
|
|||
// 1. When the text field is focused, the editor's cursor should be disabled.
|
||||
// 2. When the editor is focused, the text field's cursor should be disabled.
|
||||
// 3. Tapping a non-first line of the editor should still allow the editor to grab focus.
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('text field + editor', (tester) async {
|
||||
const widget = CustomAttributeKeyForTextBlock();
|
||||
await tester.pumpWidget(widget);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ void main() async {
|
|||
/// - bulleted list
|
||||
/// - todo list
|
||||
/// - quote
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('custom block icon', (tester) async {
|
||||
await mockNetworkImagesFor(() async {
|
||||
const widget = CustomBlockIcon();
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ import 'package:flutter_test/flutter_test.dart';
|
|||
import 'package:network_image_mock/network_image_mock.dart';
|
||||
|
||||
void main() async {
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('wrapp editor with directionality', (tester) async {
|
||||
await mockNetworkImagesFor(() async {
|
||||
const widget = DirectionalityTester();
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import 'package:network_image_mock/network_image_mock.dart';
|
|||
|
||||
void main() async {
|
||||
/// customize the image menu
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('customize the image block\'s menu', (tester) async {
|
||||
await mockNetworkImagesFor(() async {
|
||||
const widget = CustomImageMenu();
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ void main() async {
|
|||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
});
|
||||
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('customize highlight color', (tester) async {
|
||||
const text = 'Hello World';
|
||||
final document = Document.blank()
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ void main() async {
|
|||
// 1. When the text field is focused, the editor's cursor should be disabled.
|
||||
// 2. When the editor is focused, the text field's cursor should be disabled.
|
||||
// 3. Tapping a non-first line of the editor should still allow the editor to grab focus.
|
||||
await AppFlowyEditorLocalizations.load(
|
||||
const Locale.fromSubtags(languageCode: 'en'),
|
||||
);
|
||||
testWidgets('text field + editor', (tester) async {
|
||||
final widget = TextFieldAndEditor();
|
||||
await tester.pumpWidget(widget);
|
||||
|
|
|
|||
Loading…
Reference in a new issue