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

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

Issue 11410086: Use iterator, moveNext(), current. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Created 8 years, 1 month 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_server_early_client_close_test.dart
diff --git a/tests/standalone/io/http_server_early_client_close_test.dart b/tests/standalone/io/http_server_early_client_close_test.dart
index 66a2b06d28d87767bcf14c2d0811bc4551f7d2ce..25904daa1bffa217280ab8f0f46b6684e63ea890 100644
--- a/tests/standalone/io/http_server_early_client_close_test.dart
+++ b/tests/standalone/io/http_server_early_client_close_test.dart
@@ -80,13 +80,13 @@ void testEarlyClose() {
HttpServer server = new HttpServer();
server.listen("127.0.0.1", 0);
void runTest(Iterator it) {
- if (it.hasNext) {
- it.next().execute(server).then((_) => runTest(it));
+ if (it.moveNext()) {
+ it.current.execute(server).then((_) => runTest(it));
} else {
server.close();
}
}
- runTest(tests.iterator());
+ runTest(tests.iterator);
}
void main() {
« tests/corelib/list_iterators_test.dart ('K') | « tests/corelib/string_pattern_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698