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

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

Issue 13860006: Fix static type errors in a number of tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/standalone/io/socket_many_connections_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/web_socket_test.dart
diff --git a/tests/standalone/io/web_socket_test.dart b/tests/standalone/io/web_socket_test.dart
index df434a0e01abc229b64e4a984fb0c42e4b8d6558..40ca3b18884a66f6400497f4302cee4be49d70fd 100644
--- a/tests/standalone/io/web_socket_test.dart
+++ b/tests/standalone/io/web_socket_test.dart
@@ -193,12 +193,16 @@ class SecurityConfiguration {
WebSocketTransformer.upgrade(request)
.then((webSocket) {
webSocket.close();
- webSocket.listen((_) { Expect.fail(); }, onDone: server.close);
+ webSocket.listen(
+ (_) { Expect.fail("Unexpected message"); },
+ onDone: server.close);
});
});
createClient(server.port).then((webSocket) {
- webSocket.listen((_) { Expect.fail(); }, onDone: webSocket.close);
+ webSocket.listen(
+ (_) { Expect.fail("Unexpected message"); },
+ onDone: webSocket.close);
});
});
}
@@ -209,7 +213,9 @@ class SecurityConfiguration {
server.listen((request) {
WebSocketTransformer.upgrade(request)
.then((webSocket) {
- webSocket.listen((_) { Expect.fail(); }, onDone: () {
+ webSocket.listen(
+ (_) { Expect.fail("Unexpected message"); },
+ onDone: () {
server.close();
webSocket.close();
});
@@ -218,7 +224,9 @@ class SecurityConfiguration {
createClient(server.port).then((webSocket) {
webSocket.close();
- webSocket.listen((_) { Expect.fail(); }, onDone: webSocket.close);
+ webSocket.listen(
+ (_) { Expect.fail("Unexpected message"); },
+ onDone: webSocket.close);
});
});
}
« no previous file with comments | « tests/standalone/io/socket_many_connections_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698