Index: pkg/http_multi_server/test/http_multi_server_test.dart |
diff --git a/pkg/http_multi_server/test/http_multi_server_test.dart b/pkg/http_multi_server/test/http_multi_server_test.dart |
index 0371c8973ef3d856c97d3bd4d58f4e6bf3df2c5c..f74f359634f27f4da804b6657b58b9d19657bbb3 100644 |
--- a/pkg/http_multi_server/test/http_multi_server_test.dart |
+++ b/pkg/http_multi_server/test/http_multi_server_test.dart |
@@ -58,6 +58,27 @@ void main() { |
expect(_get(subServer3).then((response) { |
expect(response.headers['server'], equals("http_multi_server test")); |
}), completes); |
+ } |
+ ); |
nweiz
2014/09/23 19:34:46
Nit: "});"
Anders Johnsen
2014/09/24 09:33:13
Done.
|
+ test("autoCompress= sets the value for all servers", () { |
nweiz
2014/09/23 19:34:46
Nit: empty line between tests.
Anders Johnsen
2014/09/24 09:33:13
Done.
|
+ multiServer.autoCompress = true; |
+ |
+ multiServer.listen((request) { |
+ request.response.write("got request"); |
+ request.response.close(); |
+ }); |
+ |
+ expect(_get(subServer1).then((response) { |
+ expect(response.headers['content-encoding'], equals("gzip")); |
+ }), completes); |
+ |
+ expect(_get(subServer2).then((response) { |
+ expect(response.headers['content-encoding'], equals("gzip")); |
+ }), completes); |
+ |
+ expect(_get(subServer3).then((response) { |
+ expect(response.headers['content-encoding'], equals("gzip")); |
+ }), completes); |
}); |
test("headers.set sets the value for all servers", () { |