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

Unified Diff: tests/standalone/src/io/SocketCloseTest.dart

Issue 9597015: Update Timer API to take the callback as the last parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « tests/standalone/src/io/MultipleTimerTest.dart ('k') | tests/standalone/src/io/SocketStreamCloseTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/SocketCloseTest.dart
diff --git a/tests/standalone/src/io/SocketCloseTest.dart b/tests/standalone/src/io/SocketCloseTest.dart
index 1a90b2a521a11b149ca95d1fd9a8ae0012df63c8..c67f1c17b28fd86c92bfa92839b014fb55d71908 100644
--- a/tests/standalone/src/io/SocketCloseTest.dart
+++ b/tests/standalone/src/io/SocketCloseTest.dart
@@ -34,7 +34,7 @@ class SocketClose {
void proceed() {
if (_iterations < ITERATIONS) {
- new Timer(sendData, 0);
+ new Timer(0, sendData);
} else {
shutdown();
}
@@ -330,7 +330,7 @@ class SocketCloseServer extends Isolate {
this.port.close();
_donePort.send(null);
} else {
- new Timer(waitForResult, 100);
+ new Timer(100, waitForResult);
}
}
@@ -352,7 +352,7 @@ class SocketCloseServer extends Isolate {
_server.onError = errorHandlerServer;
replyTo.send(_server.port, null);
} else {
- new Timer(waitForResult, 0);
+ new Timer(0, waitForResult);
}
});
}
« no previous file with comments | « tests/standalone/src/io/MultipleTimerTest.dart ('k') | tests/standalone/src/io/SocketStreamCloseTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698