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

Unified Diff: chrome/test/data/webui/md_user_manager/create_profile_tests.js

Issue 2047383003: MD User Manager: "Select an account" should just be a label not a menu entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/browser/resources/md_user_manager/create_profile.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_user_manager/create_profile_tests.js
diff --git a/chrome/test/data/webui/md_user_manager/create_profile_tests.js b/chrome/test/data/webui/md_user_manager/create_profile_tests.js
index 648ea9ad139c14e0af323778954fcb0b7f4df9c3..f4d34e17fdb7632fa40539f5e3f626432080642f 100644
--- a/chrome/test/data/webui/md_user_manager/create_profile_tests.js
+++ b/chrome/test/data/webui/md_user_manager/create_profile_tests.js
@@ -69,25 +69,11 @@ cr.define('user_manager.create_profile_tests', function() {
MockInteractions.tap(createProfileElement.$$('paper-checkbox'));
Polymer.dom.flush();
- // The dropdown menu is visible and is populated with the sentinel
- // item as well as the signed in users.
+ // The dropdown menu is visible and is populated with signed in users.
var dropdownMenu = createProfileElement.$$('paper-dropdown-menu');
assertTrue(!!dropdownMenu);
var users = dropdownMenu.querySelectorAll('paper-item');
- assertEquals(2, users.length);
- });
- });
-
- test('Sentinel item is the initially selected item', function() {
- return browserProxy.whenCalled('getSignedInUsers').then(function() {
- // Simulate checking the checkbox.
- MockInteractions.tap(createProfileElement.$$('paper-checkbox'));
- Polymer.dom.flush();
-
- var dropdownMenu = createProfileElement.$$('paper-dropdown-menu');
- var selector = dropdownMenu.querySelector('paper-listbox');
- assertEquals(loadTimeData.getString('selectAnAccount'),
- selector.selectedItem.textContent.trim());
+ assertEquals(1, users.length);
});
});
« no previous file with comments | « chrome/browser/resources/md_user_manager/create_profile.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698