Index: tests/standalone/io/http_server_test.dart |
diff --git a/tests/standalone/io/http_server_test.dart b/tests/standalone/io/http_server_test.dart |
index b406f7f58d7a367f58c31ac74d5cdd15c30d9527..13cccf9c83a42eb4e3863b805b22a63079d2144d 100644 |
--- a/tests/standalone/io/http_server_test.dart |
+++ b/tests/standalone/io/http_server_test.dart |
@@ -109,8 +109,29 @@ void testHttpServerZoneError() { |
} |
+void testAbsoluteUri() { |
+ asyncStart(); |
+ HttpServer.bind("127.0.0.1", 0).then((server) { |
+ server.listen((request) { |
+ Expect.equals("http://localhost:${server.port}/path?a=b#c", |
+ request.absoluteUri.toString()); |
+ request.response.close(); |
+ }); |
+ HttpClient client = new HttpClient(); |
+ client.get("localhost", server.port, "/path?a=b#c") |
+ .then((request) =>request.close()) |
+ .then((response) => response.drain()) |
+ .then((_) { |
+ server.close(); |
+ asyncEnd(); |
+ }); |
+ }); |
+} |
+ |
+ |
void main() { |
testListenOn(); |
testHttpServerZone(); |
testHttpServerZoneError(); |
+ testAbsoluteUri(); |
} |