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

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

Issue 12052038: Rename new Uri.fromString to Uri.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload because of Error. Created 7 years, 11 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/standalone/io/http_auth_test.dart ('k') | tests/standalone/io/http_connection_close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « tests/standalone/io/http_auth_test.dart ('k') | tests/standalone/io/http_connection_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698