Skip Audit - Last Leftovers (#60940)

This commit is contained in:
Kate Lovett 2020-07-09 17:01:01 -07:00 committed by GitHub
parent e110ca7209
commit 01ac509620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 9 deletions

View file

@ -51,7 +51,7 @@ void main() {
await tester.pumpWidget(display);
await expectLater(find.byWidget(display), matchesGoldenFile('test.animation_sheet_builder.records.png'));
}, skip: isBrowser);
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/42767
testWidgets('correctly wraps a row', (WidgetTester tester) async {
final AnimationSheetBuilder builder = AnimationSheetBuilder(frameSize: _DecuplePixels.size);
@ -68,7 +68,7 @@ void main() {
await tester.pumpWidget(display);
await expectLater(find.byWidget(display), matchesGoldenFile('test.animation_sheet_builder.wraps.png'));
}, skip: isBrowser);
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/42767
}
// An animation of a yellow pixel moving from left to right, in a container of

View file

@ -224,7 +224,10 @@ void main() {
expect(find.text('Paste'), findsOneWidget);
expect(find.text('Copy'), findsOneWidget);
expect(find.text('Cut'), findsOneWidget);
}, skip: isBrowser, variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }));
},
skip: isBrowser, // We do not use Flutter-rendered context menu on the Web
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }),
);
group('Text selection menu overflow (iOS)', () {
testWidgets('All menu items show when they fit.', (WidgetTester tester) async {
@ -275,7 +278,10 @@ void main() {
expect(find.text('Select All'), findsNothing);
expect(find.text(''), findsNothing);
expect(find.text(''), findsNothing);
}, skip: isBrowser, variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }));
},
skip: isBrowser, // We do not use Flutter-rendered context menu on the Web
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }),
);
testWidgets('When a menu item doesn\'t fit, a second page is used.', (WidgetTester tester) async {
// Set the screen size to more narrow, so that Paste can't fit.
@ -343,7 +349,10 @@ void main() {
expect(find.text(''), findsNothing);
expect(find.text(''), findsOneWidget);
expect(appearsEnabled(tester, ''), true);
}, skip: isBrowser, variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }));
},
skip: isBrowser, // We do not use Flutter-rendered context menu on the Web
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }),
);
testWidgets('A smaller menu puts each button on its own page.', (WidgetTester tester) async {
// Set the screen size to more narrow, so that two buttons can't fit on
@ -442,7 +451,10 @@ void main() {
expect(find.text(''), findsNothing);
expect(find.text(''), findsOneWidget);
expect(appearsEnabled(tester, ''), true);
}, skip: isBrowser, variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }));
},
skip: isBrowser, // We do not use Flutter-rendered context menu on the Web
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }),
);
testWidgets('Handles very long locale strings', (WidgetTester tester) async {
final TextEditingController controller = TextEditingController(text: 'abc def ghi');
@ -557,6 +569,9 @@ void main() {
expect(find.text(''), findsNothing);
expect(find.text(''), findsOneWidget);
expect(appearsEnabled(tester, ''), true);
}, skip: isBrowser, variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }));
},
skip: isBrowser, // We do not use Flutter-rendered context menu on the Web
variant: const TargetPlatformVariant(<TargetPlatform>{ TargetPlatform.iOS }),
);
});
}

View file

@ -555,5 +555,5 @@ void main() {
find.byWidget(display),
matchesGoldenFile('material.circular_progress_indicator.indeterminate.png'),
);
}, skip: isBrowser);
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/42767
}

View file

@ -1124,7 +1124,7 @@ void main() {
await gesture.up();
await tester.pumpAndSettle();
}, skip: isBrowser);
});
testWidgets('Tick marks are skipped when they are too dense', (WidgetTester tester) async {
Widget buildSlider({