@@ -289,7 +289,10 @@ void main() {
289289 expect (controller.text, ' blah2blah1' );
290290 expect (controller.selection, const TextSelection (baseOffset: 0 , extentOffset: 0 ));
291291 expect (find.byType (CupertinoButton ), findsNothing);
292- }, variant: const TargetPlatformVariant (< TargetPlatform > { TargetPlatform .macOS }), skip: kIsWeb);
292+ },
293+ variant: const TargetPlatformVariant (< TargetPlatform > { TargetPlatform .macOS }),
294+ skip: kIsWeb, // [intended] the web handles this on its own.
295+ );
293296
294297 testWidgets ('Activates the text field when receives semantics focus on Mac' , (WidgetTester tester) async {
295298 final SemanticsTester semantics = SemanticsTester (tester);
@@ -454,8 +457,7 @@ void main() {
454457 );
455458 },
456459 // TODO(mdebbar): Strut styles support.
457- // https://github.com/flutter/flutter/issues/32243
458- skip: isBrowser,
460+ skip: isBrowser, // https://github.com/flutter/flutter/issues/32243
459461 );
460462
461463 testWidgets (
@@ -485,8 +487,7 @@ void main() {
485487 );
486488 },
487489 // TODO(mdebbar): Strut styles support.
488- // https://github.com/flutter/flutter/issues/32243
489- skip: isBrowser,
490+ skip: isBrowser, // https://github.com/flutter/flutter/issues/32243
490491 );
491492
492493 testWidgets (
@@ -1489,7 +1490,7 @@ void main() {
14891490 expect (text.style! .fontSize, 14 );
14901491 expect (text.style! .letterSpacing, - 0.15 );
14911492 expect (text.style! .fontWeight, FontWeight .w400);
1492- }, skip: isContextMenuProvidedByPlatform);
1493+ }, skip: isContextMenuProvidedByPlatform); // [intended] only applies to platforms where we supply the context menu.
14931494
14941495 testWidgets ('text field toolbar options correctly changes options' , (WidgetTester tester) async {
14951496 final TextEditingController controller = TextEditingController (
@@ -1532,7 +1533,7 @@ void main() {
15321533 expect (find.text ('Copy' ), findsOneWidget);
15331534 expect (find.text ('Cut' ), findsNothing);
15341535 expect (find.text ('Select All' ), findsNothing);
1535- }, skip: isContextMenuProvidedByPlatform);
1536+ }, skip: isContextMenuProvidedByPlatform); // [intended] only applies to platforms where we supply the context menu.
15361537
15371538 testWidgets ('Read only text field' , (WidgetTester tester) async {
15381539 final TextEditingController controller = TextEditingController (text: 'readonly' );
@@ -1569,7 +1570,7 @@ void main() {
15691570 expect (find.text ('Copy' ), findsOneWidget);
15701571 expect (find.text ('Paste' ), findsNothing);
15711572 expect (find.text ('Cut' ), findsNothing);
1572- }, skip: isContextMenuProvidedByPlatform);
1573+ }, skip: isContextMenuProvidedByPlatform); // [intended] only applies to platforms where we supply the context menu.
15731574
15741575 testWidgets ('copy paste' , (WidgetTester tester) async {
15751576 await tester.pumpWidget (
@@ -1620,7 +1621,7 @@ void main() {
16201621 expect (find.text ('field 1' ), findsOneWidget);
16211622 expect (find.text ("j'aime la poutine" ), findsOneWidget);
16221623 expect (find.text ('field 2' ), findsNothing);
1623- }, skip : isContextMenuProvidedByPlatform);
1624+ }, exclude : isContextMenuProvidedByPlatform);
16241625
16251626 testWidgets (
16261627 'tap moves cursor to the edge of the word it tapped on' ,
@@ -2204,7 +2205,7 @@ void main() {
22042205 expect (find.text ('Select All' ), findsOneWidget);
22052206 expect (find.text ('Copy' ), findsNothing);
22062207 expect (find.text ('Cut' ), findsNothing);
2207- }, skip: isContextMenuProvidedByPlatform);
2208+ }, skip: isContextMenuProvidedByPlatform); // [intended] only applies to platforms where we supply the context menu.
22082209
22092210 testWidgets (
22102211 'long press moves cursor to the exact long press position and shows toolbar' ,
@@ -3229,7 +3230,7 @@ void main() {
32293230 textFieldTopLeft = tester.getTopLeft (find.byType (CupertinoTextField ));
32303231 expect (toolbarTopLeft.dy, lessThan (textFieldTopLeft.dy));
32313232 },
3232- skip: isContextMenuProvidedByPlatform,
3233+ skip: isContextMenuProvidedByPlatform, // [intended] only applies to platforms where we supply the context menu.
32333234 );
32343235
32353236 testWidgets ('text field respects keyboardAppearance from theme' , (WidgetTester tester) async {
@@ -3826,7 +3827,7 @@ void main() {
38263827 expect (find.byType (CupertinoTextSelectionToolbar ), findsOneWidget);
38273828 expect (tester.takeException (), null );
38283829 });
3829- }, skip: isContextMenuProvidedByPlatform);
3830+ }, skip: isContextMenuProvidedByPlatform); // [intended] only applies to platforms where we supply the context menu.
38303831
38313832 group ('textAlignVertical position' , () {
38323833 group ('simple case' , () {
0 commit comments