Fix fasta test under windows

Change-Id: If9db5a0a9d67aa2ae369aabef44a70da06d41ac2
Reviewed-on: https://dart-review.googlesource.com/c/89764
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
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 9e499db..7ade6d5 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 @@
     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');