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 831de7cb285ba867ef13d081143d274f12152fdf..5bede0a1e29e992ff674d6f882d7327ef982c8c9 100644 |
--- a/tests/standalone/io/web_socket_test.dart |
+++ b/tests/standalone/io/web_socket_test.dart |
@@ -20,10 +20,10 @@ void testRequestResponseClientCloses( |
var count = 0; |
conn.onMessage = (Object message) => conn.send(message); |
conn.onClosed = (status, reason) { |
- Expect.equals(closeStatus === null |
+ Expect.equals(closeStatus == null |
? WebSocketStatus.NO_STATUS_RECEIVED |
: closeStatus, status); |
- Expect.equals(closeReason === null ? "" : closeReason, reason); |
+ Expect.equals(closeReason == null ? "" : closeReason, reason); |
}; |
}; |
server.defaultRequestHandler = wsHandler.onRequest; |
@@ -45,7 +45,7 @@ void testRequestResponseClientCloses( |
} |
}; |
wsconn.onClosed = (status, reason) { |
- Expect.equals(closeStatus === null |
+ Expect.equals(closeStatus == null |
? WebSocketStatus.NO_STATUS_RECEIVED |
: closeStatus, status); |
Expect.equals("", reason); |
@@ -83,7 +83,7 @@ void testRequestResponseServerCloses( |
} |
}; |
conn.onClosed = (status, reason) { |
- Expect.equals(closeStatus === null |
+ Expect.equals(closeStatus == null |
? WebSocketStatus.NO_STATUS_RECEIVED |
: closeStatus, status); |
Expect.equals("", reason); |
@@ -102,10 +102,10 @@ void testRequestResponseServerCloses( |
WebSocketClientConnection wsconn = new WebSocketClientConnection(conn); |
wsconn.onMessage = (message) => wsconn.send(message); |
wsconn.onClosed = (status, reason) { |
- Expect.equals(closeStatus === null |
+ Expect.equals(closeStatus == null |
? WebSocketStatus.NO_STATUS_RECEIVED |
: closeStatus, status); |
- Expect.equals(closeReason === null ? "" : closeReason, reason); |
+ Expect.equals(closeReason == null ? "" : closeReason, reason); |
}; |
} |
} |