Index: tests/standalone/io/http_client_test.dart |
diff --git a/tests/standalone/io/http_client_test.dart b/tests/standalone/io/http_client_test.dart |
index ca1daef76354e54d59db43c446c722b9cdd12fc3..698090a8aa502be99c6ccf2aac0a3db47b961c9c 100644 |
--- a/tests/standalone/io/http_client_test.dart |
+++ b/tests/standalone/io/http_client_test.dart |
@@ -30,7 +30,7 @@ void testGoogleUrl() { |
HttpClient client = new HttpClient(); |
void testUrl(String url) { |
- var requestUri = new Uri.fromString(url); |
+ var requestUri = Uri.parse(url); |
var conn = client.getUrl(requestUri); |
conn.onRequest = (HttpClientRequest request) { |
@@ -62,7 +62,7 @@ void testGoogleUrl() { |
void testInvalidUrl() { |
HttpClient client = new HttpClient(); |
Expect.throws( |
- () => client.getUrl(new Uri.fromString('ftp://www.google.com'))); |
+ () => client.getUrl(Uri.parse('ftp://www.google.com'))); |
} |
void testBadHostName() { |