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

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

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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/testing_server.dart ('k') | tests/utils/dummy_compiler_test.dart » ('j') | 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 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);
};
}
}
« no previous file with comments | « tests/standalone/io/testing_server.dart ('k') | tests/utils/dummy_compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698