|
2 | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | 3 | // found in the LICENSE file. |
4 | 4 |
|
5 | | -// no-shuffle: |
6 | | -// //TODO(gspencergoog): Remove this tag once this test's state leaks/test |
7 | | -// dependencies have been fixed. |
8 | | -// https://github.com/flutter/flutter/issues/85160 |
9 | | -// Fails with "flutter test --test-randomize-ordering-seed=456" |
10 | 5 | // reduced-test-set: |
11 | 6 | // This file is run as part of a reduced test set in CI on Mac and Windows |
12 | 7 | // machines. |
13 | | -@Tags(<String>['reduced-test-set', 'no-shuffle']) |
| 8 | +@Tags(<String>['reduced-test-set']) |
14 | 9 | library; |
15 | 10 |
|
16 | 11 | import 'dart:math' as math; |
@@ -4166,36 +4161,34 @@ void main() { |
4166 | 4161 | ); |
4167 | 4162 | }); |
4168 | 4163 |
|
4169 | | - testWidgets( |
4170 | | - 'Conflicting scrollbars are not applied by ScrollBehavior to Dropdown', |
4171 | | - (WidgetTester tester) async { |
4172 | | - // Regression test for https://github.com/flutter/flutter/issues/83819 |
4173 | | - // Open the dropdown menu |
4174 | | - final Key buttonKey = UniqueKey(); |
4175 | | - await tester.pumpWidget( |
4176 | | - buildFrame( |
4177 | | - buttonKey: buttonKey, |
4178 | | - initialValue: null, // nothing selected |
4179 | | - items: List<String>.generate(100, (int index) => index.toString()), |
4180 | | - onChanged: onChanged, |
4181 | | - ), |
4182 | | - ); |
4183 | | - await tester.tap(find.byKey(buttonKey)); |
4184 | | - await tester.pump(); |
4185 | | - await tester.pumpAndSettle(); // finish the menu animation |
| 4164 | + testWidgets('Conflicting scrollbars are not applied by ScrollBehavior to Dropdown', ( |
| 4165 | + WidgetTester tester, |
| 4166 | + ) async { |
| 4167 | + // Regression test for https://github.com/flutter/flutter/issues/83819 |
| 4168 | + // Open the dropdown menu |
| 4169 | + final Key buttonKey = UniqueKey(); |
| 4170 | + await tester.pumpWidget( |
| 4171 | + buildFrame( |
| 4172 | + buttonKey: buttonKey, |
| 4173 | + initialValue: null, // nothing selected |
| 4174 | + items: List<String>.generate(100, (int index) => index.toString()), |
| 4175 | + onChanged: onChanged, |
| 4176 | + ), |
| 4177 | + ); |
| 4178 | + await tester.tap(find.byKey(buttonKey)); |
| 4179 | + await tester.pump(); |
| 4180 | + await tester.pumpAndSettle(); // finish the menu animation |
4186 | 4181 |
|
4187 | | - // The inherited ScrollBehavior should not apply Scrollbars since they are |
4188 | | - // already built in to the widget. For iOS platform, ScrollBar directly returns |
4189 | | - // CupertinoScrollbar |
4190 | | - expect( |
4191 | | - find.byType(CupertinoScrollbar), |
4192 | | - debugDefaultTargetPlatformOverride == TargetPlatform.iOS ? findsOneWidget : findsNothing, |
4193 | | - ); |
4194 | | - expect(find.byType(Scrollbar), findsOneWidget); |
4195 | | - expect(find.byType(RawScrollbar), findsNothing); |
4196 | | - }, |
4197 | | - variant: TargetPlatformVariant.all(), |
4198 | | - ); |
| 4182 | + // The inherited ScrollBehavior should not apply Scrollbars since they are |
| 4183 | + // already built in to the widget. For iOS platform, ScrollBar directly returns |
| 4184 | + // CupertinoScrollbar |
| 4185 | + expect( |
| 4186 | + find.byType(CupertinoScrollbar), |
| 4187 | + debugDefaultTargetPlatformOverride == TargetPlatform.iOS ? findsOneWidget : findsNothing, |
| 4188 | + ); |
| 4189 | + expect(find.byType(Scrollbar), findsOneWidget); |
| 4190 | + expect(find.byType(RawScrollbar), findsNothing); |
| 4191 | + }, variant: TargetPlatformVariant.all()); |
4199 | 4192 |
|
4200 | 4193 | testWidgets('borderRadius property works properly', (WidgetTester tester) async { |
4201 | 4194 | const radius = 20.0; |
|
0 commit comments