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

Unified Diff: remoting/webapp/crd/js/xmpp_connection_unittest.js

Issue 1004513002: Eliminated named constants for instances of remoting.Error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « remoting/webapp/crd/js/xmpp_connection.js ('k') | remoting/webapp/crd/js/xmpp_login_handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/xmpp_connection_unittest.js
diff --git a/remoting/webapp/crd/js/xmpp_connection_unittest.js b/remoting/webapp/crd/js/xmpp_connection_unittest.js
index a948a22130a1781700c7615f14e2c2dfe3e98584..f631e2bd8728d182701d5e9a0d9a31db16c7832d 100644
--- a/remoting/webapp/crd/js/xmpp_connection_unittest.js
+++ b/remoting/webapp/crd/js/xmpp_connection_unittest.js
@@ -70,7 +70,7 @@ QUnit.asyncTest('should go to FAILED state when failed to connect', function() {
function onFailed() {
sinon.assert.calledWith(socket.dispose);
- QUnit.equal(connection.getError(), remoting.Error.NETWORK_FAILURE);
+ QUnit.ok(connection.getError().hasTag(remoting.Error.Tag.NETWORK_FAILURE));
QUnit.start();
}
« no previous file with comments | « remoting/webapp/crd/js/xmpp_connection.js ('k') | remoting/webapp/crd/js/xmpp_login_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698