Revert matcher package (#18614)

The new matcher package deprecates isInstanceOf which seems eggregious.
This commit is contained in:
Ian Hickson
2018-06-19 17:22:56 -07:00
committed by GitHub
parent 0f2e50bb87
commit 6599271bf5
73 changed files with 232 additions and 225 deletions

View File

@@ -180,7 +180,7 @@ Future<Null> main() async {
buffer.add('import \'dart:math\' as math;');
buffer.add('import \'dart:typed_data\';');
buffer.add('import \'dart:ui\' as ui;');
buffer.add('import \'package:flutter_test/flutter_test.dart\' hide TypeMatcher;');
buffer.add('import \'package:flutter_test/flutter_test.dart\';');
for (FileSystemEntity file in flutterPackage.listSync(recursive: false, followLinks: false)) {
if (file is File && path.extension(file.path) == '.dart') {
buffer.add('');

View File

@@ -20,7 +20,7 @@ dependencies:
typed_data: 1.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies:
test: 0.12.42
test: 0.12.41
mockito: 3.0.0-alpha+5
analyzer: 0.31.2-alpha.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
@@ -37,7 +37,7 @@ dev_dependencies:
json_rpc_2: 2.0.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel: 0.3.0-alpha.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
logging: 0.11.3+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher: 0.12.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher: 0.12.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime: 0.9.6+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket: 1.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
@@ -61,4 +61,4 @@ dev_dependencies:
web_socket_channel: 1.0.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml: 2.1.14 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM: ca9f
# PUBSPEC CHECKSUM: 049d

View File

@@ -25,7 +25,7 @@ void main() {
expectAsync1((List<String> commandLine) async {
return processRunner.runProcess(commandLine);
})(<String>['this_executable_better_not_exist_2857632534321']),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
try {
await processRunner.runProcess(<String>['this_executable_better_not_exist_2857632534321']);
} on ProcessRunnerException catch (e) {
@@ -62,7 +62,7 @@ void main() {
expectAsync1((List<String> commandLine) async {
return processRunner.runProcess(commandLine);
})(<String>['echo', 'test']),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
});
});
group('ArchiveCreator for $platformName', () {
@@ -204,7 +204,7 @@ void main() {
};
processManager.fakeResults = calls;
expect(expectAsync0(creator.initializeRepo),
throwsA(const TypeMatcher<ProcessRunnerException>()));
throwsA(const isInstanceOf<ProcessRunnerException>()));
});
});