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

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

Issue 1111603002: Added ability to register new hosts using GCD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host-list-delete
Patch Set: for review Created 5 years, 8 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/crd/js/host_list_api_impl_unittest.js
diff --git a/remoting/webapp/crd/js/host_list_api_impl_unittest.js b/remoting/webapp/crd/js/host_list_api_impl_unittest.js
index 3fe3432794ecebedd7cd22c52b8ec117ec8e8829..4baebd6e7fe83a8e2afbdf2074a9433e1a06a3c3 100644
--- a/remoting/webapp/crd/js/host_list_api_impl_unittest.js
+++ b/remoting/webapp/crd/js/host_list_api_impl_unittest.js
@@ -65,8 +65,9 @@ QUnit.test('register with auth code', function(assert) {
FAKE_HOST_NAME,
FAKE_PUBLIC_KEY,
FAKE_HOST_CLIENT_ID
- ). then(function(authCode) {
- assert.equal(authCode, FAKE_AUTH_CODE);
+ ). then(function(regResult) {
+ assert.equal(regResult.authCode, FAKE_AUTH_CODE);
+ assert.equal(regResult.email, '');
});
});
@@ -78,8 +79,9 @@ QUnit.test('register without auth code', function(assert) {
FAKE_HOST_NAME,
FAKE_PUBLIC_KEY,
FAKE_HOST_CLIENT_ID
- ). then(function(authCode) {
- assert.equal(authCode, '');
+ ). then(function(regResult) {
+ assert.equal(regResult.authCode, '');
+ assert.equal(regResult.email, '');
});
});

Powered by Google App Engine
This is Rietveld 408576698