From 01ac509620d5cc211208cd3698a56c05d17ab394 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Thu, 9 Jul 2020 17:01:01 -0700 Subject: [PATCH] Skip Audit - Last Leftovers (#60940) --- .../test/animation/animation_sheet_test.dart | 4 +-- .../test/cupertino/text_selection_test.dart | 25 +++++++++++++++---- .../material/progress_indicator_test.dart | 2 +- .../flutter/test/material/slider_test.dart | 2 +- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/packages/flutter/test/animation/animation_sheet_test.dart b/packages/flutter/test/animation/animation_sheet_test.dart index f5a8a2bc2c..15102ec06c 100644 --- a/packages/flutter/test/animation/animation_sheet_test.dart +++ b/packages/flutter/test/animation/animation_sheet_test.dart @@ -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 diff --git a/packages/flutter/test/cupertino/text_selection_test.dart b/packages/flutter/test/cupertino/text_selection_test.dart index f77d9267e2..361f2ce918 100644 --- a/packages/flutter/test/cupertino/text_selection_test.dart +++ b/packages/flutter/test/cupertino/text_selection_test.dart @@ -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.iOS })); + }, + skip: isBrowser, // We do not use Flutter-rendered context menu on the Web + variant: const TargetPlatformVariant({ 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.iOS })); + }, + skip: isBrowser, // We do not use Flutter-rendered context menu on the Web + variant: const TargetPlatformVariant({ 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.iOS })); + }, + skip: isBrowser, // We do not use Flutter-rendered context menu on the Web + variant: const TargetPlatformVariant({ 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.iOS })); + }, + skip: isBrowser, // We do not use Flutter-rendered context menu on the Web + variant: const TargetPlatformVariant({ 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.iOS })); + }, + skip: isBrowser, // We do not use Flutter-rendered context menu on the Web + variant: const TargetPlatformVariant({ TargetPlatform.iOS }), + ); }); } diff --git a/packages/flutter/test/material/progress_indicator_test.dart b/packages/flutter/test/material/progress_indicator_test.dart index f42763d4cb..e82a298527 100644 --- a/packages/flutter/test/material/progress_indicator_test.dart +++ b/packages/flutter/test/material/progress_indicator_test.dart @@ -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 } diff --git a/packages/flutter/test/material/slider_test.dart b/packages/flutter/test/material/slider_test.dart index cc457da050..12ba23b698 100644 --- a/packages/flutter/test/material/slider_test.dart +++ b/packages/flutter/test/material/slider_test.dart @@ -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({