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

Unified Diff: tests/corelib/uri_http_test.dart

Issue 24172004: Add another URI resolve test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_http_test.dart
diff --git a/tests/corelib/uri_http_test.dart b/tests/corelib/uri_http_test.dart
index 95614f7913b3e29afb4d0cd229bd050a4c0ada93..283d995a005822dbbda270ce14c1d74fd61d43b3 100644
--- a/tests/corelib/uri_http_test.dart
+++ b/tests/corelib/uri_http_test.dart
@@ -66,7 +66,17 @@ testHttpsUri() {
check(new Uri.https("[::127.0.0.1]", "a"), "https://[::127.0.0.1]/a");
}
+testResolveHttpScheme() {
+ String s = "//myserver:1234/path/some/thing";
+ Uri uri = Uri.parse(s);
+ Uri http = new Uri(scheme: "http");
+ Uri https = new Uri(scheme: "https");
+ Expect.equals("http:$s", http.resolveUri(uri).toString());
+ Expect.equals("https:$s", https.resolveUri(uri).toString());
+}
+
main() {
testHttpUri();
testHttpsUri();
+ testResolveHttpScheme();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698