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

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: 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
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 a948a22130a1781700c7615f14e2c2dfe3e98584..a304cf53ee9e785c0f278e03cc982df5862a27ac 100644
--- a/remoting/webapp/unittests/xmpp_connection_unittest.js
+++ b/remoting/webapp/unittests/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.equal(connection.getError().tag, remoting.Error.Tag.NETWORK_FAILURE);
QUnit.start();
}
« no previous file with comments | « remoting/webapp/unittests/mock_signal_strategy.js ('k') | remoting/webapp/unittests/xmpp_login_handler_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698