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

Unified Diff: utils/tests/pub/test_pub.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 | « utils/tests/pub/oauth2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 2ded719bb7a4f58d557eedb971ee80c9b2b4a8d4..caa7347482f200c00bca1b2adb5db27edfc295f7 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -1447,7 +1447,7 @@ class ScheduledServer {
/// The base URL of the server, including its port.
Future<Uri> get url =>
- port.then((p) => new Uri.fromString("http://localhost:$p"));
+ port.then((p) => Uri.parse("http://localhost:$p"));
/// Assert that the next request has the given [method] and [path], and pass
/// it to [handler] to handle. If [handler] returns a [Future], wait until
@@ -1460,7 +1460,7 @@ class ScheduledServer {
handlerCompleter.complete((request, response) {
expect(request.method, equals(method));
// TODO(nweiz): Use request.path once issue 7464 is fixed.
- expect(new Uri.fromString(request.uri).path, equals(path));
+ expect(Uri.parse(request.uri).path, equals(path));
var future = handler(request, response);
if (future == null) future = new Future.immediate(null);
« no previous file with comments | « utils/tests/pub/oauth2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698