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

Unified Diff: tests/standalone/io/http_session_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_session_test.dart
diff --git a/tests/standalone/io/http_session_test.dart b/tests/standalone/io/http_session_test.dart
index 515800973795aeb10986c41d91ed9de068997823..0b83bf4fb5935931f8f3bd624de9d0a4f63668a8 100644
--- a/tests/standalone/io/http_session_test.dart
+++ b/tests/standalone/io/http_session_test.dart
@@ -2,7 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import "dart:io";
+import 'dart:async';
+import 'dart:io';
const SESSION_ID = "DARTSESSID";
@@ -50,10 +51,10 @@ void testSessions(int sessionCount) {
var futures = [];
for (int i = 0; i < sessionCount; i++) {
- futures.add(connectGetSession(server.port).chain((session) {
+ futures.add(connectGetSession(server.port).then((session) {
Expect.isNotNull(session);
Expect.isTrue(sessions.contains(session));
- return connectGetSession(server.port, session).transform((session2) {
+ return connectGetSession(server.port, session).then((session2) {
Expect.equals(session2, session);
Expect.isTrue(sessions.contains(session2));
return session2;
@@ -89,7 +90,7 @@ void testTimeout(int sessionCount) {
Futures.wait(timeouts).then((_) {
futures = [];
for (var id in clientSessions) {
- futures.add(connectGetSession(server.port, id).transform((session) {
+ futures.add(connectGetSession(server.port, id).then((session) {
Expect.isNotNull(session);
Expect.notEquals(id, session);
}));
« no previous file with comments | « tests/standalone/io/http_server_early_server_close_test.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698