Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: tests/standalone/io/http_headers_test.dart

Issue 10407093: Fix test tests/standalone/io/http_headers_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97e7a88e5f0481fa2034dff222d3b431257d4556..137abe5c9d8cc63e8461ebb2ac44f58185c5b324 100644
--- a/tests/standalone/io/http_headers_test.dart
+++ b/tests/standalone/io/http_headers_test.dart
@@ -232,7 +232,10 @@ void testContentType() {
Expect.equals("text/html; charset=utf-8", contentType.toString());
contentType.parameters["xxx"] = "yyy";
check(contentType, "text", "html", {"charset": "utf-8", "xxx": "yyy"});
- Expect.equals("text/html; charset=utf-8; xxx=yyy", contentType.toString());
+ String s = contentType.toString();
+ bool expectedToString = (s == "text/html; charset=utf-8; xxx=yyy" ||
+ s == "text/html; xxx=yyy; charset=utf-8");
+ Expect.isTrue(expectedToString);
contentType = new _ContentType.fromString("text/html");
check(contentType, "text", "html");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698