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

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

Issue 12387085: Improve web-socket implementation by using making _WebSocketProtocolProcessor a StreamTransformer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/io/web_socket_protocol_processor_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 937467a3f24a4285d14369d6de6d19a9ce9b8802..f1f32b073fd2346c3d2a0629b11f8382b7ee376e 100644
--- a/tests/standalone/io/web_socket_test.dart
+++ b/tests/standalone/io/web_socket_test.dart
@@ -121,9 +121,10 @@ class SecurityConfiguration {
onDone: () {
Expect.equals(closeStatus == null
? WebSocketStatus.NO_STATUS_RECEIVED
- : closeStatus, event.code);
- Expect.equals(
- closeReason == null ? "" : closeReason, event.reason);
+ : closeStatus, webSocket.closeCode);
+ Expect.equals(closeReason == null
+ ? ""
+ : closeReason, webSocket.closeReason);
});
});
}
@@ -274,9 +275,8 @@ class SecurityConfiguration {
Expect.equals(10, onmessageCalled);
Expect.isFalse(oncloseCalled);
oncloseCalled = true;
- Expect.isTrue(event.wasClean);
- Expect.equals(3002, event.code);
- Expect.equals("Got tired", event.reason);
+ Expect.equals(3002, webSocket.closeCode);
+ Expect.equals("Got tired", webSocket.closeReason);
Expect.equals(WebSocket.CLOSED, webSocket.readyState);
});
});
« no previous file with comments | « tests/standalone/io/web_socket_protocol_processor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698