diff --git a/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart b/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart index 9e499dbc6cc..7ade6d598a7 100644 --- a/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart +++ b/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart @@ -22,9 +22,9 @@ main() { expect(resolveInputUri('c:/foo').scheme, 'file'); if (Platform.isWindows) { /// : is an invalid path character in windows. - expect(() => resolveInputUri('test:foo').scheme, throwsFormatException); + expect(() => resolveInputUri('test:foo').scheme, throwsArgumentError); expect(() => resolveInputUri('org-dartlang-foo:bar').scheme, - throwsFormatException); + throwsArgumentError); } else { expect(resolveInputUri('test:foo').scheme, 'file'); expect(resolveInputUri('org-dartlang-foo:bar').scheme, 'file');