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

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

Issue 2577003002: MD Settings: actually fix sync Learn More click issues (Closed)
Patch Set: closure Created 4 years 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/webui/settings/people_page_sync_page_test.js
diff --git a/chrome/test/data/webui/settings/people_page_sync_page_test.js b/chrome/test/data/webui/settings/people_page_sync_page_test.js
index 312c5e3f69c2efc44e4f295fad0381d3cd828bbb..79927fd29658f6db83cac3b052518a07e29138cc 100644
--- a/chrome/test/data/webui/settings/people_page_sync_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_sync_page_test.js
@@ -287,6 +287,24 @@ cr.define('settings_people_page_sync_page', function() {
assertTrue(encryptWithPassphrase.checked);
});
+ test('ClickingLinkDoesNotChangeRadioValue', function() {
+ assertFalse(encryptWithPassphrase.disabled);
+ assertFalse(encryptWithPassphrase.checked);
+
+ // Make sure the checkbox is enabled and checked.
tommycli 2016/12/15 16:08:33 nit: it's actually a radio box
Dan Beam 2016/12/16 01:24:40 Done.
+ var link = encryptWithPassphrase.querySelector('a[href]');
+ assertTrue(!!link);
+
+ // Suppress opening a new tab, since then the test will continue running
+ // on a background tab (which has throttled timers) and will timeout.
+ link.target = '';
+ link.href = '#';
+
+ MockInteractions.tap(link);
+
+ assertFalse(encryptWithPassphrase.checked);
+ });
+
test('SaveButtonDisabledWhenPassphraseOrConfirmationEmpty', function() {
MockInteractions.tap(encryptWithPassphrase);
Polymer.dom.flush();

Powered by Google App Engine
This is Rietveld 408576698