Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: tests/corelib/uri_scheme_test.dart

Issue 337033003: Revert "New, more validating, parser for URI." and follow-up patches. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/corelib/uri_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_scheme_test.dart
diff --git a/tests/corelib/uri_scheme_test.dart b/tests/corelib/uri_scheme_test.dart
index f8166246fd1deb101b90c2a86b8610b89a3a8abd..2565e70ab427372c705300c32c1ccc267d75e755 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 FormatException);
- Expect.throws(() => new Uri(scheme: "http_s"), (e) => e is FormatException);
+ 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: "127.0.0.1:80"),
- (e) => e is FormatException);
+ (e) => e is ArgumentError);
}
void testScheme() {
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/corelib/uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698