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

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

Issue 2223743003: MD User Manager: Changes to 'import supervised users' dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 4 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/test/data/webui/md_user_manager/create_profile_tests.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/import_supervised_user_tests.js
diff --git a/chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js b/chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js
index de220037e43ce3f89cdd6ee3e32eb78600cec2cc..dc6b3c303ab98281cfeec2c9c0fe88af74e7f686 100644
--- a/chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js
+++ b/chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js
@@ -41,37 +41,6 @@ cr.define('user_manager.import_supervised_user_tests', function() {
assertFalse(importElement.$.dialog.opened);
});
- test('Dialog shows when there are no supervised users', function() {
- // The dialog is initially not visible.
- assertFalse(importElement.$.dialog.opened);
-
- importElement.show({username: 'username',
- profilePath: 'path/to/profile'},
- []);
- Polymer.dom.flush();
-
- // The dialog becomes visible.
- assertTrue(importElement.$.dialog.opened);
-
- // The correct message is displayed.
- assertEquals(loadTimeData.getString('noSupervisedUserImportText'),
- importElement.$$('#message').textContent.trim());
-
- var selectorElement = importElement.$$('paper-listbox');
- assertTrue(!!selectorElement);
-
- // There are no supervised users to choose from.
- var items = selectorElement.querySelectorAll('paper-item');
- assertEquals(0, items.length);
-
- // Simulate clicking 'Cancel'
- MockInteractions.tap(importElement.$$('#cancel'));
-
- Polymer.dom.flush();
- // The dialog is no longer visible.
- assertFalse(importElement.$.dialog.opened);
- });
-
test('Can import supervised user', function() {
return new Promise(function(resolve, reject) {
/** @type {!SignedInUser} */
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698