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..c4a0e80866b69490cb8d303545b07bf7f96a848d 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,23 @@ cr.define('settings_people_page_sync_page', function() { |
assertTrue(encryptWithPassphrase.checked); |
}); |
+ test('ClickingLinkDoesNotChangeRadioValue', function() { |
+ assertFalse(encryptWithPassphrase.disabled); |
+ assertFalse(encryptWithPassphrase.checked); |
+ |
+ 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(); |