Chromium Code Reviews| 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(); |