Cleanup random dead test code (#104568)
This commit is contained in:
committed by
GitHub
parent
da24f105bd
commit
2b14e993a7
@@ -8,10 +8,7 @@ import 'package:flutter_driver/src/common/error.dart';
|
||||
import 'package:test_api/test_api.dart'; // ignore: deprecated_member_use
|
||||
|
||||
export 'package:test_api/fake.dart'; // ignore: deprecated_member_use
|
||||
export 'package:test_api/test_api.dart' hide isInstanceOf; // ignore: deprecated_member_use
|
||||
|
||||
/// A matcher that compares the type of the actual value to the type argument T.
|
||||
TypeMatcher<T> isInstanceOf<T>() => isA<T>();
|
||||
export 'package:test_api/test_api.dart'; // ignore: deprecated_member_use
|
||||
|
||||
void tryToDelete(Directory directory) {
|
||||
// This should not be necessary, but it turns out that
|
||||
@@ -26,6 +23,3 @@ void tryToDelete(Directory directory) {
|
||||
|
||||
/// Matcher for functions that throw [DriverError].
|
||||
final Matcher throwsDriverError = throwsA(isA<DriverError>());
|
||||
|
||||
/// Matcher for functions that throw [AssertionError].
|
||||
final Matcher throwsAssertionError = throwsA(isA<AssertionError>());
|
||||
|
||||
Reference in New Issue
Block a user