| Index: tests/html/websocket_test.dart
|
| diff --git a/tests/html/websocket_test.dart b/tests/html/websocket_test.dart
|
| index 752856c25199c5b8be55939df68688694667b6f3..2e02761cdc1a41db977d855c3733e4f65f2f12ca 100644
|
| --- a/tests/html/websocket_test.dart
|
| +++ b/tests/html/websocket_test.dart
|
| @@ -19,7 +19,7 @@ main() {
|
|
|
| test('constructorTest', () {
|
| expect(() {
|
| - var socket = new WebSocket('ws://localhost');
|
| + var socket = new WebSocket('ws://localhost/ws', 'chat');
|
| expect(socket, isNotNull);
|
| expect(socket, isWebSocket);
|
| }, expectation);
|
| @@ -27,7 +27,8 @@ main() {
|
|
|
| if (WebSocket.supported) {
|
| test('echo', () {
|
| - var socket = new WebSocket('ws://${window.location.host}/ws', 'chat');
|
| + var socket = new WebSocket('ws://${window.location.host}/ws');
|
| +
|
| socket.onOpen.first.then((_) {
|
| socket.send('hello!');
|
| });
|
|
|