mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -18,11 +18,17 @@ void main() {
|
||||
|
||||
// Elements on Style ToggleButton Toolbar.
|
||||
expect(
|
||||
find.widgetWithIcon(ToggleButtons, Icons.format_bold), findsOneWidget);
|
||||
expect(find.widgetWithIcon(ToggleButtons, Icons.format_italic),
|
||||
findsOneWidget);
|
||||
expect(find.widgetWithIcon(ToggleButtons, Icons.format_underline),
|
||||
findsOneWidget);
|
||||
find.widgetWithIcon(ToggleButtons, Icons.format_bold),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.widgetWithIcon(ToggleButtons, Icons.format_italic),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.widgetWithIcon(ToggleButtons, Icons.format_underline),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
// Elements on the main screen
|
||||
// Delta labels.
|
||||
@@ -35,24 +41,34 @@ void main() {
|
||||
// Selection delta is generated and delta history is visible.
|
||||
await tester.tap(find.byType(BasicTextInputClient));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.widgetWithText(TextEditingDeltaView, "NonTextUpdate"),
|
||||
findsOneWidget);
|
||||
expect(
|
||||
find.widgetWithText(TextEditingDeltaView, "NonTextUpdate"),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
// Find tooltips.
|
||||
expect(find.byTooltip('The text that is being inserted or deleted'),
|
||||
findsOneWidget);
|
||||
expect(
|
||||
find.byTooltip(
|
||||
'The type of text input that is occurring. Check out the documentation for TextEditingDelta for more information.'),
|
||||
findsOneWidget);
|
||||
find.byTooltip('The text that is being inserted or deleted'),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.byTooltip(
|
||||
'The offset in the text where the text input is occurring.'),
|
||||
findsOneWidget);
|
||||
find.byTooltip(
|
||||
'The type of text input that is occurring. Check out the documentation for TextEditingDelta for more information.',
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.byTooltip(
|
||||
'The new text selection range after the text input has occurred.'),
|
||||
findsOneWidget);
|
||||
find.byTooltip(
|
||||
'The offset in the text where the text input is occurring.',
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.byTooltip(
|
||||
'The new text selection range after the text input has occurred.',
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
// About Dialog
|
||||
expect(find.widgetWithIcon(IconButton, Icons.info_outline), findsOneWidget);
|
||||
|
||||
Reference in New Issue
Block a user