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

Unified Diff: chrome/test/data/extensions/api_test/autotest_private/test.js

Issue 13520005: autotestPrivate.loginStatus returns a dictionary instead of a string. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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: chrome/test/data/extensions/api_test/autotest_private/test.js
===================================================================
--- chrome/test/data/extensions/api_test/autotest_private/test.js (revision 191644)
+++ chrome/test/data/extensions/api_test/autotest_private/test.js (working copy)
@@ -20,9 +20,16 @@
function loginStatus() {
chrome.autotestPrivate.loginStatus(
chrome.test.callbackPass(function(status) {
- chrome.test.assertEq(typeof(status), 'string');
- chrome.test.assertTrue(status != "");
- // TODO(achuith): Add tests for various login states.
+ chrome.test.assertEq(typeof(status), 'object');
+ chrome.test.assertTrue(status.hasOwnProperty("is_logged_in"));
+ chrome.test.assertTrue(status.hasOwnProperty("is_owner"));
+ chrome.test.assertTrue(status.hasOwnProperty("is_screen_locked"));
+ chrome.test.assertTrue(status.hasOwnProperty("is_regular_user"));
+ chrome.test.assertTrue(status.hasOwnProperty("is_guest"));
+ chrome.test.assertTrue(status.hasOwnProperty("is_kiosk"));
+ chrome.test.assertTrue(status.hasOwnProperty("email"));
+ chrome.test.assertTrue(status.hasOwnProperty("display_email"));
+ chrome.test.assertTrue(status.hasOwnProperty("user_image"));
}));
}
]);

Powered by Google App Engine
This is Rietveld 408576698