@@ -1316,41 +1316,6 @@ void main() {
13161316 expect (find.text ('Paste' ), kIsWeb ? findsNothing : findsOneWidget);
13171317 });
13181318
1319- testWidgets ('can hide toolbar with DismissIntent' , (WidgetTester tester) async {
1320- await tester.pumpWidget (
1321- MaterialApp (
1322- home: EditableText (
1323- backgroundCursorColor: Colors .grey,
1324- controller: controller,
1325- focusNode: focusNode,
1326- style: textStyle,
1327- cursorColor: cursorColor,
1328- selectionControls: materialTextSelectionControls,
1329- ),
1330- ),
1331- );
1332-
1333- final EditableTextState state =
1334- tester.state <EditableTextState >(find.byType (EditableText ));
1335-
1336- // Show the toolbar
1337- state.renderEditable.selectWordsInRange (
1338- from: Offset .zero,
1339- cause: SelectionChangedCause .tap,
1340- );
1341- await tester.pump ();
1342-
1343- // On web, we don't let Flutter show the toolbar.
1344- expect (state.showToolbar (), kIsWeb ? isFalse : isTrue);
1345- await tester.pumpAndSettle ();
1346- expect (find.text ('Paste' ), kIsWeb ? findsNothing : findsOneWidget);
1347-
1348- // Hide the menu using the DismissIntent.
1349- await tester.sendKeyEvent (LogicalKeyboardKey .escape);
1350- await tester.pump ();
1351- expect (find.text ('Paste' ), findsNothing);
1352- });
1353-
13541319 testWidgets ('Paste is shown only when there is something to paste' , (WidgetTester tester) async {
13551320 await tester.pumpWidget (
13561321 MaterialApp (
0 commit comments