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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: tests/standalone/io/http_connection_header_test.dart
diff --git a/tests/standalone/io/http_connection_header_test.dart b/tests/standalone/io/http_connection_header_test.dart
index 03c7d93403d031731c6889772af293d30c119c96..77cf97671ee839b7fac8d7b12cf4302b73e89909 100644
--- a/tests/standalone/io/http_connection_header_test.dart
+++ b/tests/standalone/io/http_connection_header_test.dart
@@ -17,15 +17,15 @@ void checkExpectedConnectionHeaders(HttpHeaders headers,
bool persistentConnection) {
Expect.equals("some-value1", headers.value("My-Connection-Header1"));
Expect.equals("some-value2", headers.value("My-Connection-Header2"));
- Expect.isTrue(headers[HttpHeaders.CONNECTION].some(
+ Expect.isTrue(headers[HttpHeaders.CONNECTION].any(
(value) => value.toLowerCase() == "my-connection-header1"));
- Expect.isTrue(headers[HttpHeaders.CONNECTION].some(
+ Expect.isTrue(headers[HttpHeaders.CONNECTION].any(
(value) => value.toLowerCase() == "my-connection-header2"));
if (persistentConnection) {
Expect.equals(2, headers[HttpHeaders.CONNECTION].length);
} else {
Expect.equals(3, headers[HttpHeaders.CONNECTION].length);
- Expect.isTrue(headers[HttpHeaders.CONNECTION].some(
+ Expect.isTrue(headers[HttpHeaders.CONNECTION].any(
(value) => value.toLowerCase() == "close"));
}
}
« no previous file with comments | « tests/standalone/io/http_connection_close_test.dart ('k') | tests/standalone/io/http_content_length_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698