wip
diff --git a/packages/flutter/test/widgets/text_semantics_test.dart b/packages/flutter/test/widgets/text_semantics_test.dart
index a1eeb2d..120eb84 100644
--- a/packages/flutter/test/widgets/text_semantics_test.dart
+++ b/packages/flutter/test/widgets/text_semantics_test.dart
@@ -173,12 +173,12 @@
expect(labelToNodeId['has been created.'], '');
expect(labelToNodeId.length, 3);
});
-
+
testWidgets('GIVEN a Text widget with a locale '
- 'WHEN semantics are built '
- 'THEN the SemanticsNode contains the correct language tag', (WidgetTester tester) async {
+ 'WHEN semantics are built '
+ 'THEN the SemanticsNode contains the correct language tag', (WidgetTester tester) async {
const Locale locale = Locale('de', 'DE');
-
+ // ./bin/flutter test packages/flutter/test/widgets/text_semantics_test.dart
await tester.pumpWidget(
const Directionality(
textDirection: TextDirection.ltr,
@@ -193,14 +193,16 @@
expect(node.label, 'Flutter 2050');
expect(localeStringAttribute.locale.toLanguageTag(), 'de-DE');
});
-
+
testWidgets('GIVEN a Text with a locale is within a SelectionContainer '
- 'WHEN semantics are built '
- 'THEN the SemanticsNode contains the correct language tag', (WidgetTester tester) async {
+ 'WHEN semantics are built '
+ 'THEN the SemanticsNode contains the correct language tag', (WidgetTester tester) async {
const Locale locale = Locale('de', 'DE');
const String text = 'Flutter 2050';
await tester.pumpWidget(
- const MaterialApp(home: SelectionArea(child: Text(text, locale: locale))),
+ const MaterialApp(
+ home: SelectionArea(child: Text(text, locale: locale)),
+ ),
);
await tester.pumpAndSettle();