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

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 38aa6c296c5622c69d18cc0bc863f57c3b59d367..f99f94c008295e7e678797bc0ba09c8090c42f4b 100644
--- a/remoting/webapp/unittests/xmpp_connection_unittest.js
+++ b/remoting/webapp/unittests/xmpp_connection_unittest.js
@@ -63,7 +63,7 @@ test('should go to FAILED state when failed to connect', function() {
chrome.socket.connect, socketId, "xmpp.example.com", 123);
chrome.socket.connect.$testStub.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',
« remoting/webapp/crd/js/error.js ('K') | « remoting/webapp/unittests/mock_signal_strategy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698