Index: tests/standalone/io/http_headers_test.dart |
diff --git a/tests/standalone/io/http_headers_test.dart b/tests/standalone/io/http_headers_test.dart |
index c9006ea10ac928b804bef6c28d7cf7c365f4d55c..6d2b92d3e41974c64e51394fef8ef1240b057de9 100644 |
--- a/tests/standalone/io/http_headers_test.dart |
+++ b/tests/standalone/io/http_headers_test.dart |
@@ -332,12 +332,14 @@ void testContentType() { |
contentType = new ContentType("text", |
"html", |
- parameters: {"CHARSET": "UTF-8", "xxx": "yyy"}); |
- check(contentType, "text", "html", {"charset": "utf-8", "xxx": "yyy"}); |
+ parameters: {"CHARSET": "UTF-8", "xxx": "YYY"}); |
+ check(contentType, "text", "html", {"charset": "utf-8", "xxx": "YYY"}); |
String s = contentType.toString(); |
- bool expectedToString = (s == "text/html; charset=utf-8; xxx=yyy" || |
- s == "text/html; xxx=yyy; charset=utf-8"); |
+ bool expectedToString = (s == "text/html; charset=utf-8; xxx=YYY" || |
+ s == "text/html; xxx=YYY; charset=utf-8"); |
Expect.isTrue(expectedToString); |
+ contentType = ContentType.parse("text/html; CHARSET=UTF-8; xxx=YYY"); |
+ check(contentType, "text", "html", {"charset": "utf-8", "xxx": "YYY"}); |
Expect.throws(() => contentType.parameters["xxx"] = "yyy", |
(e) => e is UnsupportedError); |