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

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

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Requested changes. Created 5 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
Index: remoting/webapp/unittests/xmpp_connection_unittest.js
diff --git a/remoting/webapp/unittests/xmpp_connection_unittest.js b/remoting/webapp/unittests/xmpp_connection_unittest.js
index a36261f9fba4059d3ae0f1d14d9846225fd52f70..8d133887011e178033e79dadeed990f9072512a8 100644
--- a/remoting/webapp/unittests/xmpp_connection_unittest.js
+++ b/remoting/webapp/unittests/xmpp_connection_unittest.js
@@ -56,7 +56,7 @@ test('should go to FAILED state when failed to connect', function() {
chrome.socket.connect, socketId, "xmpp.example.com", 123);
chrome.socket.connect.getCall(0).args[3](-1);
- QUnit.equal(connection.getError(), remoting.Error.NETWORK_FAILURE);
+ QUnit.equal(connection.getError().tag, remoting.Error.Tag.NETWORK_FAILURE);
});
test('should use XmppLoginHandler to complete handshake and read data',

Powered by Google App Engine
This is Rietveld 408576698