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

Unified Diff: chrome/test/data/webui/settings/certificate_manager_page_test.js

Issue 2836143004: MD Settings: Allow empty passwords when importing certificate. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.html ('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/settings/certificate_manager_page_test.js
diff --git a/chrome/test/data/webui/settings/certificate_manager_page_test.js b/chrome/test/data/webui/settings/certificate_manager_page_test.js
index 8002bf576fb9ac337803c772a22b8e37bf359f3a..d583895150fa89fbba5bc6c4d45c615d0dbc42a5 100644
--- a/chrome/test/data/webui/settings/certificate_manager_page_test.js
+++ b/chrome/test/data/webui/settings/certificate_manager_page_test.js
@@ -440,14 +440,13 @@ cr.define('certificate_manager_page', function() {
var passwordInputElement =
Polymer.dom(dialog.$.dialog).querySelector('paper-input');
assertTrue(dialog.$.dialog.open);
- assertTrue(dialog.$.ok.disabled);
- // Test that the 'OK' button is disabled when the password field is
+ // Test that the 'OK' button is enabled even when the password field is
// empty.
- triggerInputEvent(passwordInputElement);
- assertTrue(dialog.$.ok.disabled);
+ assertEquals('', passwordInputElement.value);
+ assertFalse(dialog.$.ok.disabled);
+
passwordInputElement.value = 'foopassword';
- triggerInputEvent(passwordInputElement);
assertFalse(dialog.$.ok.disabled);
// Simulate clicking 'OK'.
« no previous file with comments | « chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698