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

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: Address comments. 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 d1d0d0b06c32348ad4a19e72d05f6fbf2403c96f..aca38bd9dfbb5600828ccdc64b1bfe801cca0e38 100644
--- a/tests/standalone/io/http_server_early_client_close_test.dart
+++ b/tests/standalone/io/http_server_early_client_close_test.dart
@@ -81,13 +81,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() {

Powered by Google App Engine
This is Rietveld 408576698