Index: tests/corelib/uri_scheme_test.dart |
diff --git a/tests/corelib/uri_scheme_test.dart b/tests/corelib/uri_scheme_test.dart |
index 2565e70ab427372c705300c32c1ccc267d75e755..f8166246fd1deb101b90c2a86b8610b89a3a8abd 100644 |
--- a/tests/corelib/uri_scheme_test.dart |
+++ b/tests/corelib/uri_scheme_test.dart |
@@ -5,10 +5,10 @@ |
import "package:expect/expect.dart"; |
void testInvalidArguments() { |
- Expect.throws(() => new Uri(scheme: "_"), (e) => e is ArgumentError); |
- Expect.throws(() => new Uri(scheme: "http_s"), (e) => e is ArgumentError); |
+ Expect.throws(() => new Uri(scheme: "_"), (e) => e is FormatException); |
+ Expect.throws(() => new Uri(scheme: "http_s"), (e) => e is FormatException); |
Expect.throws(() => new Uri(scheme: "127.0.0.1:80"), |
- (e) => e is ArgumentError); |
+ (e) => e is FormatException); |
} |
void testScheme() { |