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

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

Issue 18659004: Handle client end error in standalone/io/secure_socket_bad_data_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/secure_socket_bad_data_test.dart
diff --git a/tests/standalone/io/secure_socket_bad_data_test.dart b/tests/standalone/io/secure_socket_bad_data_test.dart
index a0f1f4b07bc2769a74773fa3400283ae8a114f7b..a1ced5b8b28b758a8dac380e0f96b6c7f956d742 100644
--- a/tests/standalone/io/secure_socket_bad_data_test.dart
+++ b/tests/standalone/io/secure_socket_bad_data_test.dart
@@ -114,6 +114,10 @@ void test(bool hostnameInConnect) {
break;
default: throw "Unexpected event $event";
}
+ },
+ onError: (e) {
+ Expect.isTrue(e is IOException);
Anders Johnsen 2013/07/04 09:42:32 IOException? Not any higher-level error?
+ completer.complete(null);
});
return completer.future;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698