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

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
« no previous file with comments | « chrome/common/extensions/api/autotest_private.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/autotest_private/test.js
===================================================================
--- chrome/test/data/extensions/api_test/autotest_private/test.js (revision 192364)
+++ 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("isLoggedIn"));
+ chrome.test.assertTrue(status.hasOwnProperty("isOwner"));
+ chrome.test.assertTrue(status.hasOwnProperty("isScreenLocked"));
+ chrome.test.assertTrue(status.hasOwnProperty("isRegularUser"));
+ chrome.test.assertTrue(status.hasOwnProperty("isGuest"));
+ chrome.test.assertTrue(status.hasOwnProperty("isKiosk"));
+ chrome.test.assertTrue(status.hasOwnProperty("email"));
+ chrome.test.assertTrue(status.hasOwnProperty("displayEmail"));
+ chrome.test.assertTrue(status.hasOwnProperty("userImage"));
}));
}
]);
« no previous file with comments | « chrome/common/extensions/api/autotest_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698