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

Unified Diff: tests/standalone/io/http_client_exception_test.dart

Issue 335373003: New Uri.parse and validation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More test. 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
Index: tests/standalone/io/http_client_exception_test.dart
diff --git a/tests/standalone/io/http_client_exception_test.dart b/tests/standalone/io/http_client_exception_test.dart
index 4a5ab98aa924344a7ef61a1629a5ba48838ba64d..a2bb7a851f79dd33703f2db43125eebc4094f63b 100644
--- a/tests/standalone/io/http_client_exception_test.dart
+++ b/tests/standalone/io/http_client_exception_test.dart
@@ -18,7 +18,7 @@ void testInvalidUrl() {
(e) => e.toString().contains("Unsupported scheme"));
Expect.throws(
() => client.getUrl(Uri.parse('http://::1')),
- (e) => e.toString().contains("No host specified"));
+ (e) => e is FormatException);
Expect.throws(
() => client.getUrl(Uri.parse('http://user@:1')),
(e) => e.toString().contains("No host specified"));

Powered by Google App Engine
This is Rietveld 408576698