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

Unified Diff: tests/standalone/io/https_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/https_client_certificate_test.dart ('k') | tests/standalone/io/https_server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/https_client_test.dart
diff --git a/tests/standalone/io/https_client_test.dart b/tests/standalone/io/https_client_test.dart
index 6535e48add62f3f089392f4c0cff788e4025d919..847249fc135b8b96a947df4f69d93047a689f36f 100644
--- a/tests/standalone/io/https_client_test.dart
+++ b/tests/standalone/io/https_client_test.dart
@@ -12,7 +12,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) {
@@ -43,7 +43,7 @@ void testGoogleUrl() {
void testBadHostName() {
HttpClient client = new HttpClient();
HttpClientConnection connection = client.getUrl(
- new Uri.fromString("https://some.bad.host.name.7654321/"));
+ Uri.parse("https://some.bad.host.name.7654321/"));
connection.onRequest = (HttpClientRequest request) {
Expect.fail("Should not open a request on bad hostname");
};
« no previous file with comments | « tests/standalone/io/https_client_certificate_test.dart ('k') | tests/standalone/io/https_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698