Skip to content

Commit 1789a42

Browse files
authored
Remove some ignores for un-deprecated imports (#125261)
The latest version of `test_api` removed the deprecated annotation for a couple libraries. The deprecations had been a hack to avoid usage from inappropriate places, but they cause trouble and likely weren't effective for that goal. Remove separate import for `registerException` since that was also moved to be available from the top level `scaffolding.dart` library.
1 parent dff451e commit 1789a42

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/flutter_test/lib/src/widget_tester.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ export 'package:matcher/expect.dart' hide expect, isInstanceOf;
4949
// The test_api package has a deprecation warning to discourage direct use but
5050
// that doesn't apply here.
5151
export 'package:test_api/hooks.dart' show TestFailure;
52-
// ignore: deprecated_member_use
5352
export 'package:test_api/scaffolding.dart'
5453
hide group, setUp, setUpAll, tearDown, tearDownAll, test;
55-
// ignore: implementation_imports
56-
export 'package:test_api/src/scaffolding/utils.dart' show registerException;
5754

5855
/// Signature for callback to [testWidgets] and [benchmarkWidgets].
5956
typedef WidgetTesterCallback = Future<void> Function(WidgetTester widgetTester);

packages/flutter_tools/lib/src/test/test_wrapper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:test_core/src/executable.dart' as test; // ignore: implementatio
88
import 'package:test_core/src/platform.dart' as hack show registerPlatformPlugin; // ignore: implementation_imports
99
import 'package:test_core/src/platform.dart'; // ignore: implementation_imports
1010

11-
export 'package:test_api/backend.dart' show Runtime; // ignore: deprecated_member_use
11+
export 'package:test_api/backend.dart' show Runtime;
1212
export 'package:test_core/src/platform.dart' show PlatformPlugin;
1313

1414
abstract class TestWrapper {

0 commit comments

Comments
 (0)