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(); |
} |