Index: tests/standalone/io/http_server_response_test.dart |
diff --git a/tests/standalone/io/http_server_response_test.dart b/tests/standalone/io/http_server_response_test.dart |
index 3c5767ea176cec6a55951fa7c8ef1ce72c12523b..baef9ba6a6ebd6c5c13fc5fea39d6579a3b01999 100644 |
--- a/tests/standalone/io/http_server_response_test.dart |
+++ b/tests/standalone/io/http_server_response_test.dart |
@@ -288,6 +288,18 @@ void testBadHeaders() { |
} |
+void testWriteCharCode() { |
+ testServerRequest((server, request) { |
+ // Test that default is latin-1 (only 2 bytes). |
+ request.response.writeCharCode(0xFF); |
+ request.response.writeCharCode(0xFF); |
+ request.response.close().then((_) { |
+ server.close(); |
+ }); |
+ }, bytes: 2); |
+} |
+ |
+ |
void main() { |
testResponseDone(); |
testResponseAddStream(); |
@@ -297,4 +309,5 @@ void main() { |
testBadResponseClose(); |
testIgnoreRequestData(); |
testBadHeaders(); |
+ testWriteCharCode(); |
} |