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

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

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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/raw_socket_test.dart
diff --git a/tests/standalone/io/raw_socket_test.dart b/tests/standalone/io/raw_socket_test.dart
index 901514fbc96dc425713dd31f98b855e8e9b26f34..23fc6a59c64bba5661755c5fe8e1bfa4c1337304 100644
--- a/tests/standalone/io/raw_socket_test.dart
+++ b/tests/standalone/io/raw_socket_test.dart
@@ -34,16 +34,16 @@ void testInvalidBind() {
// Bind to a unknown DNS name.
RawServerSocket.bind("ko.faar.__hest__")
.then((_) { Expect.fail("Failure expected"); } )
- .catchError((e) {
- Expect.isTrue(e.error is SocketIOException);
+ .catchError((error) {
+ Expect.isTrue(error is SocketIOException);
port.toSendPort().send(1);
});
// Bind to an unavaliable IP-address.
RawServerSocket.bind("8.8.8.8")
.then((_) { Expect.fail("Failure expected"); } )
- .catchError((e) {
- Expect.isTrue(e.error is SocketIOException);
+ .catchError((error) {
+ Expect.isTrue(error is SocketIOException);
port.toSendPort().send(1);
});
@@ -59,9 +59,9 @@ void testInvalidBind() {
Expect.equals(s.port, t.port);
port.toSendPort().send(1);
})
- .catchError((e) {
+ .catchError((error) {
Expect.notEquals('windows', Platform.operatingSystem);
- Expect.isTrue(e.error is SocketIOException);
+ Expect.isTrue(error is SocketIOException);
port.toSendPort().send(1);
});
});
« no previous file with comments | « tests/standalone/io/raw_secure_socket_test.dart ('k') | tests/standalone/io/secure_no_builtin_roots_database_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698